The parameter 'exePath' is invalid in ConfigurationManager.OpenExe

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have this code:
System.Configuration.Configuration config =
ConfigurationManager.OpenExeConfiguration("SAS.Int.ComunServicios.ComunProcesos.dll");


The filepath is not useful for me.

If I want to use an absolute path like:
System.Configuration.Configuration config =
ConfigurationManager.OpenExeConfiguration("C:\\SAS.Int.ComunServicios.ComunProcesos.dll");

Then I have the exception:
"An error occurred loading a configuration file: The parameter 'exePath' is
invalid.
Parameter name: exePath"

How can I use absolute path?
 
Back
Top