当我使用Web应用程序时,下面的代码行
Configuration objConfig =
ConfigurationManager.OpenExeConfiguration( ConfigurationUserLevel.None);
Run Code Online (Sandbox Code Playgroud)
在类库中给出了这个错误:
"当不在独立的exe内部运行时,必须指定exePath."
以前正在使用控制台应用程序,代码可以访问app.config.我尝试使用System.Web.Configuration类库,但是.Net选项卡中没有"添加引用"的dll.
请帮助:)