Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

See this[^] answer.

/ravi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900