In IIS, I have two web applications configured as follows:
Website 1 (fixed IP)
Application A
page1.aspx
web.config
Application B
page1.aspx
web.config
each of the web.config files contain a connection strings block with
one connection string ("connection 1"). When I try to open
application B in my browser, I get the following error:
Entry Connection 1 has already been added
indicating that although I'm requesting Application B, both web.config
files are being read and a conflict has arisen. I can fix this by
running Application B in a separate application pool, but I'd like to
know what's causing it. I cannot seem to reproduce this problem in my
development environment.
Bill E. 3 4757
Are both Application A and Application B set as Applications in IIS? If not,
this would be the cause of your problem.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"Bill E." wrote:
In IIS, I have two web applications configured as follows:
Website 1 (fixed IP)
Application A
page1.aspx
web.config
Application B
page1.aspx
web.config
each of the web.config files contain a connection strings block with
one connection string ("connection 1"). When I try to open
application B in my browser, I get the following error:
Entry Connection 1 has already been added
indicating that although I'm requesting Application B, both web.config
files are being read and a conflict has arisen. I can fix this by
running Application B in a separate application pool, but I'd like to
know what's causing it. I cannot seem to reproduce this problem in my
development environment.
Bill E.
Peter,
Both are set as applications in IIS.
Bill
Peter Bromberg [ C# MVP ] wrote:
Are both Application A and Application B set as Applications in IIS? If not,
this would be the cause of your problem.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"Bill E." wrote:
In IIS, I have two web applications configured as follows:
Website 1 (fixed IP)
Application A
page1.aspx
web.config
Application B
page1.aspx
web.config
each of the web.config files contain a connection strings block with
one connection string ("connection 1"). When I try to open
application B in my browser, I get the following error:
Entry Connection 1 has already been added
indicating that although I'm requesting Application B, both web.config
files are being read and a conflict has arisen. I can fix this by
running Application B in a separate application pool, but I'd like to
know what's causing it. I cannot seem to reproduce this problem in my
development environment.
Bill E.
This problem went away without explanation. I simply updated one of
the web.config files (without changing it) and now both sites are
working.
Bill
Bill E. wrote:
Peter,
Both are set as applications in IIS.
Bill
Peter Bromberg [ C# MVP ] wrote:
Are both Application A and Application B set as Applications in IIS? If not,
this would be the cause of your problem.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"Bill E." wrote:
In IIS, I have two web applications configured as follows:
>
Website 1 (fixed IP)
Application A
page1.aspx
web.config
>
Application B
page1.aspx
web.config
>
>
each of the web.config files contain a connection strings block with
one connection string ("connection 1"). When I try to open
application B in my browser, I get the following error:
>
Entry Connection 1 has already been added
>
indicating that although I'm requesting Application B, both web.config
files are being read and a conflict has arisen. I can fix this by
running Application B in a separate application pool, but I'd like to
know what's causing it. I cannot seem to reproduce this problem in my
development environment.
>
Bill E.
>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: localhost |
last post by:
Is a web.config read in any subdirectory of a web site,
or is web.config only read if it is itself in an
application main directory (eg site root or virtual
directory)?
Thanks.
|
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...
|
by: Jose Perez |
last post by:
Dear All,
We are experiencing a problem with web.config and the fact that it's
settings are being "inherited" other applications.
Our default website is configured to run "MyApplication1". The...
|
by: Manso |
last post by:
Hi,
We have an application that is installed in default web site (root web
site). The same application will be installed as virtual directories under
the root site e.g. <default web site>/app1...
|
by: Asela Gunawardena |
last post by:
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...
|
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...
|
by: SuperJason |
last post by:
We have a web application that uses 2 different virtual directories.
- The first is an ASP.NET application that has web services that can be used
to authenticate various clients.
- The second is...
|
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...
|
by: djmc |
last post by:
Hi,
I am having problems with virtual directories and web.config inheritance. I
have read the section titled "Conflicts between settings on virtual and
physical directories" at...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |