Last post Oct 16, 2007 10:17 AM by philipjohnson3
Oct 16, 2007 05:41 AM|loydall|LINK
Hello - I have a website project and then a couple of class library projects. Each of these class library projects has an app.config file with a connection string in (it's the same connection string in each app.config in each file).
When I build the project, the web.config file is the only config file I get and this contains the connection string.
But - the class library projects compile into dlls with the connection strings hard coded into them.
How do I get the compiled dlls to reference to connection string in web.config rather than compiling with hard coded connection strings?
Oct 16, 2007 10:17 AM|philipjohnson3|LINK
if you use system.configuration.configurationmanager, those dll's should reference the settings in web.config by default.