473,378 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

web.config has too much junk in it!

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?

Nov 14 '08 #1
2 983
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! |
********************************************
"Andy B" <a_*****@sbcglobal.netwrote in message
news:eM**************@TK2MSFTNGP05.phx.gbl...
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?
Nov 15 '08 #2
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 <httpHandlersin system.web, but apparently <location>
isn't allowed inside of anything other than <configurationtag. Go figure.
"Gregory A. Beamer" <No************@comcast.netNoSpamMwrote in message
news:OA**************@TK2MSFTNGP02.phx.gbl...
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! |
********************************************
"Andy B" <a_*****@sbcglobal.netwrote in message
news:eM**************@TK2MSFTNGP05.phx.gbl...
>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?

Nov 15 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andre Phandana | last post by:
Hi, I tried to send email from my server using mail() but the email goes to @xyz.com junk mail folders. Why is that so? How can I fix it? Thank you, --Andre Phandana
5
by: risha | last post by:
void FlashReadM(volatile unsigned long *fl_ad,unsigned long abb) { unsigned long ulvald; abb=2; ulvald=0; //fl_ad=(volatile unsigned long *)0x8020; ulvald= *(fl_ad); //return ucVal; }
5
by: Eric Sabine | last post by:
This situation requres many exes to be sitting on a network share. I would like all of these to use the same app.config file, which will be stored in the same location on the network. A quick...
16
by: Jeff | last post by:
Im trying to memcpy a buffer from a filled in simple structure. When I memcpy and then print the resulting buffer, I see 7 locations that have junk before my data starts. My data structure is: ...
14
by: HB | last post by:
As many of us know, when we send legitimate emails to real customers from our apps, those emails often end up in the Hotmail (and MSN -- and AOL, too) junk folder. I've done a lot of testing with...
3
by: crjunk | last post by:
If you change something in the Web.Config file, does the web application need to be rebuilt? I don't think you have to, but I just wanted to make sure that is correct. Thanks, CR Junk
6
by: NickP | last post by:
Hi there, I am implementing a simple "/U" command line argument for a .NET application that instructs the application to delete the following folders... ...
2
by: tiijnar | last post by:
Hi Friends, I Have written a java code to send mails to some receipients.It sends to internal mail ID's in the office. An SMTP server has been provided to me. But the problem is that the mails are...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.