473,513 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web.config.exclude

Hi,

Am currently in the process of migrating a whole heap of v1.1 ASP.NET
solutions to v2.0, and would be interested to know what others are doing
about excluding web.config from projects.

In v1.1, it was quite usual to exclude web.config from the project so that
it wouldn't get deployed to the live site along with the rest of the aspx
etc files and the bin folder. Typically (for me, anyway!) this was because
the web.config would contain lots of appsettings values which were different
in the development environment, the testing environment and the live
environment e.g. database connection strings etc. Excluding web.config from
the project meant that it didn't get deployed with the rest of the solution
so that deployment wouldn't overwrite the file on the other environments.

Excluding web.config in ASP.NET 2 renames it to web.config.exclude, which
causes debugging to fail.

What is the accepted wisdom for overcoming this in ASP.NET 2?

Mark
Dec 2 '05 #1
1 2882
No-one got any ideas...?

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:OT*************@tk2msftngp13.phx.gbl...
Hi,

Am currently in the process of migrating a whole heap of v1.1 ASP.NET
solutions to v2.0, and would be interested to know what others are doing
about excluding web.config from projects.

In v1.1, it was quite usual to exclude web.config from the project so that
it wouldn't get deployed to the live site along with the rest of the aspx
etc files and the bin folder. Typically (for me, anyway!) this was because
the web.config would contain lots of appsettings values which were
different in the development environment, the testing environment and the
live environment e.g. database connection strings etc. Excluding
web.config from the project meant that it didn't get deployed with the
rest of the solution so that deployment wouldn't overwrite the file on the
other environments.

Excluding web.config in ASP.NET 2 renames it to web.config.exclude, which
causes debugging to fail.

What is the accepted wisdom for overcoming this in ASP.NET 2?

Mark

Dec 4 '05 #2

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

Similar topics

13
1505
by: gaudetteje | last post by:
Hi All, I've been trying to come up with an elegant solution to this problem, but can't seem to think of anything better than my solution below. I have a Python program that needs to be...
1
5441
by: Rajesh Abraham | last post by:
I would like to Exclude MyApp.Exe.Config from my Setup Package as I don't want it to get overwritten during upgrade installation of my application. If I remove app.config while building the...
2
4407
by: Peter | last post by:
I have a site which uses forms authentication but I would like to exclude certain pages on the site from authentication. In other words I would like the user to be able to get to these pages...
1
2261
by: Hardy Wang | last post by:
Hi, I have a ASP.NET web site with form authentication. Now I need to create a sub folder named "abc", I need to exclude all files under this folder nopt to be protected by form authentication,...
2
13633
by: Islam Elkhayat | last post by:
How can i exclude some files from the Form Authentication.. my welcome page and even custom error pages (404) is not working before authenticate. need help
8
1974
by: Robert | last post by:
I have what I think should be a pretty common scenario in a corporate environment. I have a web app and three environments on three servers: Development, QA and Production. We develop in...
12
13408
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
2
1925
by: jonathan184 | last post by:
How to exclude lines from a txt file that start with a # Hi basically my script works fine. I wanted to add some comments in my config file but it is reading in the comment lines to. So...
3
2909
by: Joseph Geretz | last post by:
Visual Studio 2005: I'm using Publish to 'mirror' my development site onto the staging site. It's working beautifully except for one annoyance; it keeps overwriting web.config on the staging box...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7547
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7114
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3230
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.