Thursday, 15 September 2011

c# - Importing Web MVC app into Forms Desktop Application App.Config Returns Null -



c# - Importing Web MVC app into Forms Desktop Application App.Config Returns Null -

we have windows forms desktop application, making seperate mvc web app utilize desktop apps business objects. imported mvc app solution desktop solution. problem getting connectionstring out of app.config doesn't seem work when our startup project set mvc solution. copied app.config file our mvc websolution, statement

string remote = configurationmanager.appsettings["rmsremoteconnection"];

always loads null. statment beingness called class within desktop forms application. when our startup project web mvc solution configmanager has problems. need utilize existing business objects of main desktop solution. ideas?

we copied app.config file our mvc websolution

an asp.net web application uses web.config, not app.config. create sure have web.config file in root of web application containing connection string.

c# .net web-applications configuration

No comments:

Post a Comment