10 Things ASP.NET Developers Should Know About Web.config Inheritance(weblogs.asp.net)

submitted by jongallowayjongalloway(4350) 1 month, 5 days ago

Ten things you should know about Web.config inheritance and overrides that will simplify some configuration challenges and help with debugging. Bet there are some you didn't know about!

5 comments |category: |Views: 1258

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by javeryjavery(5523) 1 month, 4 days ago +1

Disinheriting your child applications with inheritInChildApplications="false"

If you are writing open source software like a CMS or Blog please please please use this vigilantly - otherwise people trying to host apps in sub virtual directories will inherit all of your settings.

If they don't then you have to use:

Clearing parent settings when adding to a collection

Reply

posted by dpetersondpeterson(3582) 1 month, 4 days ago 0

Using transforms is a great idea to handle differences in environments. A much better option than stepping on your teams toes or constantly mucking with the web.config manually for different environments.

Reply

posted by pwhe23pwhe23(845) 1 month, 4 days ago 0

For some reason in our environment, it does not appear that the Debug.config transformations are applied when the project is built as the article indicates, but only when it is published.

Reply

posted by NoldorinNoldorin(811) 1 month, 4 days ago 0

Some useful tips. I didn't actually know any of 4, 6, 7, which could definitely be pretty useful.

I still hate web.config files, as they're big bloated pieces of semi-comprehensible XML, but oh well!

Reply

posted by vijaystvijayst(1311) 1 month, 2 days ago 0

Very useful tips. It is useful to see the machine.config and root web.config for process settings as well as information about modules and handlers.

Reply

information Login or create an account to comment on this story