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

Having Two web.config files under same site.

we have a web site which operates as a seperate application that can be
integrated with other webs site developped to use other platforms such as
php, jsp, etc. so obivously we have our own web.config file. But recently
this site was integrated with an ASP.NET site which dosenot allow us to have
our own web.config file. it says there is already a configurqtion section
called <enterpriselibrary> etc. where as both the sites uses microsoft data
application blocks for the data tier.
my question is what prevents us from using our own web.config ? because when
you configure an ASP web site as a seperate virtual directory in IIS under
the same site it tends to run as another application isn't it ? where as
this particular site dose not is there any particular reason for this.?

thankx in advance
Asela
Apr 4 '06 #1
2 5096
Asela Gunawardena wrote:
we have a web site which operates as a seperate application that can be
integrated with other webs site developped to use other platforms such as
php, jsp, etc. so obivously we have our own web.config file. But recently
this site was integrated with an ASP.NET site which dosenot allow us to have
our own web.config file. it says there is already a configurqtion section
called <enterpriselibrary> etc. where as both the sites uses microsoft data
application blocks for the data tier.
my question is what prevents us from using our own web.config ? because when
you configure an ASP web site as a seperate virtual directory in IIS under
the same site it tends to run as another application isn't it ? where as
this particular site dose not is there any particular reason for this.?

thankx in advance
Asela


The issue is that you probably have a web.config in 1 application's
folder but then also 1 or more .configs in its subfolders. Even tho you
try to set this up in IIS to have separate virtual directories, an app
domain for ASP.NET starts at a virtual directory and goes downward into
the file structure. So then it finds another web.config and as it
noted, you can't have more than 1 enterprise library config section.

Separate the apps out into separate file structures; use IIS to map them
virtually as tho they look like 1 site. That's what virtual directories
are for, to separate filesystem location from url location.

--
Craig
Microsoft MVP - ASP/ASP.NET
Apr 4 '06 #2
Craig Deelsnyder wrote:
Asela Gunawardena wrote:
we have a web site which operates as a seperate application that can
be integrated with other webs site developped to use other platforms
such as php, jsp, etc. so obivously we have our own web.config file.
But recently this site was integrated with an ASP.NET site which
dosenot allow us to have our own web.config file. it says there is
already a configurqtion section called <enterpriselibrary> etc. where
as both the sites uses microsoft data application blocks for the data
tier.
my question is what prevents us from using our own web.config ?
because when you configure an ASP web site as a seperate virtual
directory in IIS under the same site it tends to run as another
application isn't it ? where as this particular site dose not is there
any particular reason for this.?

thankx in advance
Asela


The issue is that you probably have a web.config in 1 application's
folder but then also 1 or more .configs in its subfolders. Even tho you
try to set this up in IIS to have separate virtual directories, an app
domain for ASP.NET starts at a virtual directory and goes downward into
the file structure. So then it finds another web.config and as it
noted, you can't have more than 1 enterprise library config section.

Separate the apps out into separate file structures; use IIS to map them
virtually as tho they look like 1 site. That's what virtual directories
are for, to separate filesystem location from url location.

or, I should have mentioned the obvious; remove any 'invalid' config
sections that cannot be redefined in subfolders' web.configs...

--
Craig
Microsoft MVP - ASP/ASP.NET
Apr 4 '06 #3

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

Similar topics

4
by: Fuzzyman | last post by:
There have been a couple of config file 'systems' announced recently, that focus on building more powerful and complex configuration files. ConfigObj is a module to enable you to much more *simply*...
10
by: mike | last post by:
Is it possible to move the web.config out of the application folder? I would like it off somewhere out of the web directory
0
by: John Wallace | last post by:
Hi, I have an initial build of an ASP.NET/C# application (based around a "custom control" with some supporting webforms) that contains the usual mix of: 1) ASP files 2) A single DLL...
3
by: Mads Brydegaard | last post by:
Hi, I have created a custom Config handler for reading a custom config section in my .config file(s) It works very well! I have placed a web.config in my root directory and then I use sub...
5
by: George | last post by:
Hi, Is it possible to specify the location of a web.config file in an ASP.NET application? I have one ASP.NET application which is to be hosted on 2 web sites in the same web server. I want...
8
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
by: Ben | last post by:
I have a group of settings that I'd like to have inherited by multiple sites. I'm trying this, but it's not working. wwwroot\group\web.config wwwroot\group\site1\web.config...
2
by: Arpan | last post by:
What exactly are configuration section handlers in a web.config file? How would you define them & what for are they used in web.config files? Is it a must for web.config files to have handlers? ...
4
by: Andy | last post by:
If I open, edit and save the web.config file directly on the webserver, the web server becomes unavailable. When I reset IIS, I get the 'Server Application Unavailable' message appear for that...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.