knowlton : - "exePath must be specified when not running inside a stand alone exe" .
What are some known causes / solutions for this error?
IIS / ASP.NET / C#
Rovastar : - Incorrectly using ConfigurationManager.OpenE xeConfigur ation instead of the correct ConfigurationManager.OpenW ebConfigur ation when using web applications is a common cause.
pcsmitpra : - There is first possible cause that you are referring to configuration group like here:
we can use ConfigurationManager.OpenW ebConfigur ation() method instead of ConfigurationManager.OpenE xeConfigur ation().
There is one more close and relevant case :
API configuration for WCF :
Configuration appConfig = ConfigurationManager.OpenE xeConfigur ation(Conf igurationU serLevel.N one);
ServiceModelSectionGroup serviceModel = ServiceModelSectionGroup.G etSectionG roup(appCo nfig);
This code will work while the application is an exe but if you will write the same code in an web application it will fail.
Here the issue is , IIS could not load the exe from configuration manager, So we require configuration section instead of Configuration group to use directly ConfigurationManager and some modified syntax. The previous example can now be rewritten like this:
ClientSection client = ConfigurationManager.GetSe ction("sys tem.servic eModel/cli ent") as ClientSection;
I hope it will give you a good idea to deal with it.
Cheers.
What are some known causes / solutions for this error?
IIS / ASP.NET / C#
Rovastar : - Incorrectly using ConfigurationManager.OpenE
pcsmitpra : - There is first possible cause that you are referring to configuration group like here:
we can use ConfigurationManager.OpenW
There is one more close and relevant case :
API configuration for WCF :
Configuration appConfig = ConfigurationManager.OpenE
ServiceModelSectionGroup serviceModel = ServiceModelSectionGroup.G
This code will work while the application is an exe but if you will write the same code in an web application it will fail.
Here the issue is , IIS could not load the exe from configuration manager, So we require configuration section instead of Configuration group to use directly ConfigurationManager and some modified syntax. The previous example can now be rewritten like this:
ClientSection client = ConfigurationManager.GetSe
I hope it will give you a good idea to deal with it.
Cheers.