web.config has too much junk in it!

  • Thread starter Thread starter Andy B
  • Start date Start date
A

Andy B

Is there a way to cut down on the junk that is automatically put in
web.config? I have a default one with 128 lines in it and over 80% of it I
will never use. Besides, when I run my web applications with the default
web.config, I get errors all over the place. Is there any way to fix
something like this?
 
You can edit the templates. I n VS 2008, this means unzipping and editing,
although you can use the export feature. I would make a backup of the
original prior to editing, however, as you may find you do use this junk one
day.

--
Gregory A. Beamer
MVP: MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think Outside the Box! |
********************************************
 
I found the problem. The web.config that was in a sub application was
inheriting settings from the root applications web.config file. Since their
paths crossed and created errors, I had to use the <location
inheritInChildApplications="false"> element around system.web. I tried just
to block inheriting <httpHandlers> in system.web, but apparently <location>
isn't allowed inside of anything other than <configuration> tag. Go figure.
 
Back
Top