web.config conflicts in virtual directories

B

Bill E.

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.
 
B

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,044
Latest member
RonaldNen

Latest Threads

Top