Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some class library in business logic layer and in the presentation i have both web application and desktop application running. While developing the web application (the desktop application was already there), i faced some runtime errors lik exepath cannot be found. Thinking that as i was using openexeconfiguration, the program could not open the required config file(web.config in this case), i tried branching on the basis of the type of configuration file, but it did not work..please help. Also I need to find a solution to this problem in such a way so that i donot face any deployment issues later on, when i will use the UI and BI layers in different servers and machines (distributed systems)
Posted
Comments
ZurdoDev 6-May-13 14:01pm    
Just use ConfigurationManager.AppSettings, for example. The ConfigurationManager will open web.config when used in the web and app.config when used in a windows forms app.
Member 8773837 21-May-13 8:29am    
Done that but am getting "exePath must be specified when not running inside a stand alone exe."

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