Click here to Skip to main content
12,396,461 members (36,844 online)

.NET Framework

 
QuestionLoading dll and resources from wrong folder Pin
marca29221-Jan-13 1:58
membermarca29221-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
memberAlan N21-Jan-13 2:33 
GeneralRe: Loading dll and resources from wrong folder Pin
marca29221-Jan-13 3:47
membermarca29221-Jan-13 3:47 
AnswerRe: Loading dll and resources from wrong folder Pin
Alan N21-Jan-13 5:12
memberAlan N21-Jan-13 5:12 
GeneralRe: Loading dll and resources from wrong folder Pin
Eddy Vluggen21-Jan-13 5:29
mvpEddy Vluggen21-Jan-13 5:29 
GeneralRe: Loading dll and resources from wrong folder Pin
marca29221-Jan-13 21:30
membermarca29221-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.


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 25 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid