I received an error when the .NET Framework 2.0 assembly link tried to execute the following line of code in an IIS-enabled WCF service:
Error message:
exePath should be specified if there is no working inside a standalone exe.
Source:
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
Has anyone experienced this problem and know how to solve it?
EDIT: My question is: what is the best way to open the configuration file (app.config and web.config) from the WCF service, which is backward compatible with the .NET 2.0 assembly?
Michael kniskern
source share