473,395 Members | 1,497 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,395 software developers and data experts.

Multiple Web.config Files

I am trying to run ASP.Net 2.0 pages within a ASP.Net 1.1 application. The
2.0 pages are located in a sub-directory of the 1.1 application. Once I
create a new web.config file in the 2.0 folder the 1.1 applcation fails. I
cannot set up a second application for the 2.0 pages due to sharing
application and IIS settings.
I have a couple of questions -
1) How should I access the data in the 2.0 web.config file without breaking
the 1.1 application? Should I create an external reference in the 1.1
web.config and rename the 2.0 web.config?
2) I am using the Enterprise Library, how do I tell the Enterprise Library
to reference a file other than the web.config file?

Thanks

Feb 24 '06 #1
2 1900
make a seperate dir for the 2.0 stuff (as it needs to be its own vdir
anyway), that is in a differnt path. when you create the vdir, just make the
2.0 vdir under the 1.10

ex:

c:\sites\version1\mysite1
c:\sites\version2\mysite2

in iis create vdir one

path c:\sites\version1\mysite1
alias: /mysite1

in iis create vdir one
path c:\sites\version2\mysite2
alias: /mysite1/mysite2
-- bruce (sqlwork.com)

"Robert" <Ro****@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
I am trying to run ASP.Net 2.0 pages within a ASP.Net 1.1 application. The
2.0 pages are located in a sub-directory of the 1.1 application. Once I
create a new web.config file in the 2.0 folder the 1.1 applcation fails. I
cannot set up a second application for the 2.0 pages due to sharing
application and IIS settings.
I have a couple of questions -
1) How should I access the data in the 2.0 web.config file without
breaking
the 1.1 application? Should I create an external reference in the 1.1
web.config and rename the 2.0 web.config?
2) I am using the Enterprise Library, how do I tell the Enterprise Library
to reference a file other than the web.config file?

Thanks

Feb 25 '06 #2
I think you'll find out that fails, Bruce.
I tested that scenario, extensively, and failed every time.

As soon as the subvdir encounters a non-version specific web.config setting: crash!

However, maybe my tests were not as complete as I think they were.
If you can produce proof-of-concept, I'll acquiesce.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Bruce Barker" <br******************@safeco.com> wrote in message
news:Oa**************@TK2MSFTNGP15.phx.gbl...
make a seperate dir for the 2.0 stuff (as it needs to be its own vdir anyway), that is in a
differnt path. when you create the vdir, just make the 2.0 vdir under the 1.10

ex:

c:\sites\version1\mysite1
c:\sites\version2\mysite2

in iis create vdir one

path c:\sites\version1\mysite1
alias: /mysite1

in iis create vdir one
path c:\sites\version2\mysite2
alias: /mysite1/mysite2

-- bruce (sqlwork.com) "Robert" <Ro****@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
I am trying to run ASP.Net 2.0 pages within a ASP.Net 1.1 application. The
2.0 pages are located in a sub-directory of the 1.1 application. Once I
create a new web.config file in the 2.0 folder the 1.1 applcation fails. I
cannot set up a second application for the 2.0 pages due to sharing
application and IIS settings.
I have a couple of questions -
1) How should I access the data in the 2.0 web.config file without breaking
the 1.1 application? Should I create an external reference in the 1.1
web.config and rename the 2.0 web.config?
2) I am using the Enterprise Library, how do I tell the Enterprise Library
to reference a file other than the web.config file?

Thanks


Feb 25 '06 #3

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

Similar topics

1
by: Vlad | last post by:
Is there any way to install multiple instances of the same windows service designed with VS.NET 2003? I tried copying the binaries into a separate folder and then copying registry entries for the...
1
by: RK | last post by:
Hi I am working on C# application, where in I may require just one app.config for the C#.NET solution with multiple windows application projects. I know one web.config can be used for multiple...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
6
by: Andrew Connell | last post by:
I have an app where I want virtually everything password protected/secure except for a single directory. That directory handles some custom authentication and contains my login form, but also some...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
2
by: Sam | last post by:
Hi All, I have a solution which consists of multiple projects and each of these projects has their own app.config file. The problem is that all of my projects in the solution pull keys from the...
1
by: herbert | last post by:
In VS.2005 a Windows Service can have an app.config file. A class library can also have an app.config file. Now if my Windows Services uses three class libraries, each of it coming with its own...
3
by: | last post by:
I'm seeking (probably basic) guidance on the right way to split a large site that's supposed to represent one domain(mydomain.org) into many small VS.NET projects, and how to avoid issues with...
3
by: =?Utf-8?B?QXZpc2hheSBCZW4tWnZp?= | last post by:
Hi, I have an application that I am encrypting the connection strings on the first run of the application. I am using clickonce to deploy the application, so this was a good solution as the...
2
by: Fresno Bob | last post by:
I quite like to store variables in the web.config file. However it can make the web.config messy and make deployment fiddly. Is there any way of have multiple web.config files - one with the major...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.