Click here to Skip to main content
15,867,756 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionLoading dll and resources from wrong folder Pin
marca29221-Jan-13 1:58
marca29221-Jan-13 1:58 
I have two C# .NET applications, AppA (located in folder A) and AppB (located in folder B). AppB is also using a lot of 3rd party dll:s and configuration files located in folder B. If I start AppB from folder B the application is working as expected.
The problem is when I start appB from appA using Process.Start(), and Process.StartInfo.FileName is pointing to appB. AppB is now starting up, but it seems like it is trying to load resources from folder A instead of folder B. How can I solve this? appB shall always load resources and dll:s from folder B.

modified 21-Jan-13 8:08am.

AnswerRe: Loading dll and resources from wrong folder Pin
Alan N21-Jan-13 2:33
Alan N21-Jan-13 2:33 
GeneralRe: Loading dll and resources from wrong folder Pin
marca29221-Jan-13 3:47
marca29221-Jan-13 3:47 
AnswerRe: Loading dll and resources from wrong folder Pin
Alan N21-Jan-13 5:12
Alan N21-Jan-13 5:12 
GeneralRe: Loading dll and resources from wrong folder Pin
Eddy Vluggen21-Jan-13 5:29
professionalEddy Vluggen21-Jan-13 5:29 
GeneralRe: Loading dll and resources from wrong folder Pin
marca29221-Jan-13 21:30
marca29221-Jan-13 21:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.