Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

a typical web.config file has a <system.web/> section and a <system.webServer/> section.

I'm under the impression that IIS7 / IIS7 express ignore the <system.web/> section .. so if we will never use that cursed thing called Cassin/Web Development Server and only develop against IIS7 or IIS7 Express, then can we nuke this section completely from our web.config files?


locked by HopelessN00b Jan 21 '15 at 21:43

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Jan 21 '15 at 21:43

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

This question is off-topic under current topicality rules. – HopelessN00b Jan 21 '15 at 21:43
up vote 1 down vote accepted

If you're not using ASP.Net or any related/dependent components, then yes (edit: yes, you don't need system.web - that's just for the ASP.Net stuff).

define 'ASP.NET Stuff' please? ... the website is created in c# + MVC ..... that's pretty ASP.NETy for me... – Pure.Krome May 3 '11 at 9:58
The question was on the money. IIS itself uses only the system.webServer section. But the ASP.Net infrastructure, which yes, you're using if you're using c# and MVC, will be controlled by the system.web section. If there's anything in it, assume you probably need it. It'd be like nuking the settings in the system.webServer section otherwise - you'd end up with default settings for that app/website. – TristanK May 3 '11 at 22:37
And so re-reading the question: No, system.web isn't just used by Cassini, it's used by ASP.Net. So if you're using that, you need it. – TristanK May 3 '11 at 22:38

Yes, you can. This is also easy to verify: nuke it and test.


Not the answer you're looking for? Browse other questions tagged or ask your own question.