exePath must be specified when not running inside a stand alone exe
问题 When i am using a web application, the line of code below Configuration objConfig = ConfigurationManager.OpenExeConfiguration( ConfigurationUserLevel.None); in class library are giving this error: "exePath must be specified when not running inside a stand alone exe." Previously a console application was being used, and the code could access the app.config . I tried using the System.Web.Configuration in class library but the dll was not present in the .Net tab for "Add reference". Kindly help