app.config of the app started with Process.Start

  • Thread starter Thread starter SunshineGirl
  • Start date Start date
S

SunshineGirl

I'm using Process.Start to run an app, but when run this way, the app
doesn't load any appSettings keys. Is there a way to correct that?

Thanks.
 
I'm using Process.Start to run an app, but when run this way, the app
doesn't load any appSettings keys. Is there a way to correct that?

You may have to create a ProcessStartInfo object and set the
WorkingDirectory property explicitly to the directory the EXE file and
its config file are in.



Mattias
 
Thank you for your help.


Mattias Sjögren said:
You may have to create a ProcessStartInfo object and set the
WorkingDirectory property explicitly to the directory the EXE file and
its config file are in.



Mattias
 
Back
Top