Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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).

share|improve this answer
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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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