Multi Web.config files

Can we have multi web.config files in the same website?!

Yes you can "for example one web.config for root website and another one for a subfolder"

How can we do so with out conflict or getting errors?

– First you will need to config this subfolder as application in the IIS

– Second write <location path="." inheritInChildApplications="false"> before <system.web> and </location> after </system.web> in the root web.config file:

 

references:

http://msdn.microsoft.com/en-us/library/aa719558.aspx

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23438651.html

kick it on DotNetKicks.com

This entry was posted in Technical. Bookmark the permalink.

4 Responses to Multi Web.config files

  1. codeguru says:

    nice trick

  2. .net flight says:

    helped me too much, thanks

  3. prof_nona says:

    Thanks alot and keep on 🙂

  4. RE: Multi Web.config files

    You've been kicked (a good thing) – Trackback from DotNetKicks.com

Comments are closed.