Click here to Skip to main content
       

.NET Framework

 
QuestionLoading dll and resources from wrong folder [modified] Pinmembermarca29221-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 PinmemberAlan N21-Jan-13 2:33 
GeneralRe: Loading dll and resources from wrong folder Pinmembermarca29221-Jan-13 3:47 
AnswerRe: Loading dll and resources from wrong folder PinmemberAlan N21-Jan-13 5:12 
GeneralRe: Loading dll and resources from wrong folder PinmvpEddy Vluggen21-Jan-13 5:29 
GeneralRe: Loading dll and resources from wrong folder Pinmembermarca29221-Jan-13 21:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web01 | 2.8.140421.2 | Last Updated 23 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid