A
Alan T
I have created a class library called Employee.dll and created a
configuration file called Convert.config in this project.
What should I use to open this config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="employee" value="run batch file"/>
</appSettings>
</configuration>
This is my source code:
Configuration config =
ConfigurationManager.OpenExeConfiguration(Utils.GetCurrentAssemblyPath() +
@"\Convert.config");
AppSettingsSection appSettings = config.AppSettings as AppSettingsSection;
But I got exception:
An error occurred loading a configuration file: The parameter 'exePath' is
invalid.
Parameter name: exePath.
configuration file called Convert.config in this project.
What should I use to open this config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="employee" value="run batch file"/>
</appSettings>
</configuration>
This is my source code:
Configuration config =
ConfigurationManager.OpenExeConfiguration(Utils.GetCurrentAssemblyPath() +
@"\Convert.config");
AppSettingsSection appSettings = config.AppSettings as AppSettingsSection;
But I got exception:
An error occurred loading a configuration file: The parameter 'exePath' is
invalid.
Parameter name: exePath.