- Feb 13, 2003
- 26,255
- 403
- 126
I have been assigned to investigate how to implement a single point of storage for application & connection string configuration name/value pairs for multiple .NET applications. My first thought was a SQL Server database table, which could be used perhaps, but the problem is that connection strings could not be stored in it because they are first required to connect to the database itself.
At a previous job we did use external web.config files for a web application, for switching between Test/Prod I believe, by doing "<connectionStrings file="/ConnectionStrings.config" />" in the web.config and having external "ConnectionStrings.config" files.
Would this approach work for multiple .NET apps as it does for just a single web app? For example, a Windows app, Console app, and Windows Service app all sharing a single app.config file and a single connection strings config file? Any other recommendations?
Thanks for any insight!
At a previous job we did use external web.config files for a web application, for switching between Test/Prod I believe, by doing "<connectionStrings file="/ConnectionStrings.config" />" in the web.config and having external "ConnectionStrings.config" files.
Would this approach work for multiple .NET apps as it does for just a single web app? For example, a Windows app, Console app, and Windows Service app all sharing a single app.config file and a single connection strings config file? Any other recommendations?
Thanks for any insight!
Last edited: