Connecting Tech Pros Worldwide Help | Site Map

how to avoid multiple web.config???

ram09's Avatar
Member
 
Join Date: Oct 2008
Posts: 45
#1: Oct 23 '08
I am working with a company that is a server of multiple websites...each of this websites produces a web.config file which are just having the same configuration...can anyone help me how can I avoid this??? somebody suggested to me that i can just use the machine.config in our server...but i don't know how to configure it...can anyone have an idea how to work this problem please...thanks ^^
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Oct 23 '08

re: how to avoid multiple web.config???


The solution is to store the connection strings on the web.config of the parent web app. Note that the web site root is also an app, so you can store a web.config in there (i.e. c:\inetpub\wwwroot\web.config) which will be inherited by all apps under it.
Reply