how to avoid multiple web.config???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ram09
    New Member
    • Oct 2008
    • 45

    how to avoid multiple web.config???

    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
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    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\wwwr oot\web.config) which will be inherited by all apps under it.

    Comment

    Working...