473,471 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Parser Error Message: The entry 'ConnString1' has already been add

I am trying to deploy two copies of an application to a single website using
two virtual directories: "2007" (Production) and "Demo". Each of these
applications should point at a different DB, so my thought was to leave
everything the same, make two copies of the application files, and just edit
the Web.Config file in each copy of the application appropriately.

When I try to bring up the Demo site however, I get the following error.

"Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: The entry 'ConnString1' has already been added."

I have tripple checked the Conn string, and it is correct. Moreover, I've
even tried editing and testing the Web.Config for "Demo" in VS2005 before
redeploying the app with the same results.

Two notes that may be relevant:
1. I "precompiled" the code for both copies of the application before
deploying it to the web server
2. I had previously deployed a copy of the application to the root of the
website I'm deploying to. I have since made sure that the Home Directory of
the website is Empty before creating the virtual directories for each copy of
the application, and I've stopped and restarted the site after doing this.
Still no resolution.

Any help on this is greatly appreciated.

Thanks,

Chris Frohlich
Sep 21 '06 #1
4 3214
Chris-

Have you checked to see that both applications are:

1) Setup as applications and not just directories (assuming so from your
post),
2) Each of these are set to different application pools in IIS?

-dl
--
David Longnecker
Web Developer
Wichita Public Schools, USD 259
I am trying to deploy two copies of an application to a single website
using two virtual directories: "2007" (Production) and "Demo". Each
of these applications should point at a different DB, so my thought
was to leave everything the same, make two copies of the application
files, and just edit the Web.Config file in each copy of the
application appropriately.

When I try to bring up the Demo site however, I get the following
error.

"Configuration Error Description: An error occurred during the
processing of a configuration file required to service this request.
Please review the specific error details below and modify your
configuration file appropriately.

Parser Error Message: The entry 'ConnString1' has already been added."

I have tripple checked the Conn string, and it is correct. Moreover,
I've even tried editing and testing the Web.Config for "Demo" in
VS2005 before redeploying the app with the same results.

Two notes that may be relevant:
1. I "precompiled" the code for both copies of the application before
deploying it to the web server
2. I had previously deployed a copy of the application to the root of
the
website I'm deploying to. I have since made sure that the Home
Directory of
the website is Empty before creating the virtual directories for each
copy of
the application, and I've stopped and restarted the site after doing
this.
Still no resolution.
Any help on this is greatly appreciated.

Thanks,

Chris Frohlich

Sep 21 '06 #2
I will re-do the application pools in a second.

As for the directory/application thing, I see a gear icon. How else can I
verify, and what are the implications?

"David R. Longnecker" wrote:
Chris-

Have you checked to see that both applications are:

1) Setup as applications and not just directories (assuming so from your
post),
2) Each of these are set to different application pools in IIS?

-dl
--
David Longnecker
Web Developer
Wichita Public Schools, USD 259
I am trying to deploy two copies of an application to a single website
using two virtual directories: "2007" (Production) and "Demo". Each
of these applications should point at a different DB, so my thought
was to leave everything the same, make two copies of the application
files, and just edit the Web.Config file in each copy of the
application appropriately.

When I try to bring up the Demo site however, I get the following
error.

"Configuration Error Description: An error occurred during the
processing of a configuration file required to service this request.
Please review the specific error details below and modify your
configuration file appropriately.

Parser Error Message: The entry 'ConnString1' has already been added."

I have tripple checked the Conn string, and it is correct. Moreover,
I've even tried editing and testing the Web.Config for "Demo" in
VS2005 before redeploying the app with the same results.

Two notes that may be relevant:
1. I "precompiled" the code for both copies of the application before
deploying it to the web server
2. I had previously deployed a copy of the application to the root of
the
website I'm deploying to. I have since made sure that the Home
Directory of
the website is Empty before creating the virtual directories for each
copy of
the application, and I've stopped and restarted the site after doing
this.
Still no resolution.
Any help on this is greatly appreciated.

Thanks,

Chris Frohlich


Sep 21 '06 #3
The gear should be fine; if you go into the properties of the virtual directory,
on the Virtual Directory tab.

You'll see:

Application name:
Application pool:

I've honestly never attempted to run both with the same information, but
could see where the wires might cross. I'd recommend having different application
names and separate application pools... but I'm probably a bit more cautious
than most with separating memory for web apps.

Also, on perhaps a seperate note, if you're using a AppSettings key to store
your session token name, make sure that's different between the two as well.

I'll try it out and see if I can reproduce your error and post back.

-dl

--
David Longnecker
Web Developer
Wichita Public Schools, USD 259
I will re-do the application pools in a second.

As for the directory/application thing, I see a gear icon. How else
can I verify, and what are the implications?

"David R. Longnecker" wrote:
>Chris-

Have you checked to see that both applications are:

1) Setup as applications and not just directories (assuming so from
your
post),
2) Each of these are set to different application pools in IIS?
-dl

--
David Longnecker
Web Developer
Wichita Public Schools, USD 259
>>I am trying to deploy two copies of an application to a single
website using two virtual directories: "2007" (Production) and
"Demo". Each of these applications should point at a different DB,
so my thought was to leave everything the same, make two copies of
the application files, and just edit the Web.Config file in each
copy of the application appropriately.

When I try to bring up the Demo site however, I get the following
error.

"Configuration Error Description: An error occurred during the
processing of a configuration file required to service this request.
Please review the specific error details below and modify your
configuration file appropriately.

Parser Error Message: The entry 'ConnString1' has already been
added."

I have tripple checked the Conn string, and it is correct.
Moreover, I've even tried editing and testing the Web.Config for
"Demo" in VS2005 before redeploying the app with the same results.

Two notes that may be relevant:
1. I "precompiled" the code for both copies of the application
before
deploying it to the web server
2. I had previously deployed a copy of the application to the root
of
the
website I'm deploying to. I have since made sure that the Home
Directory of
the website is Empty before creating the virtual directories for
each
copy of
the application, and I've stopped and restarted the site after doing
this.
Still no resolution.
Any help on this is greatly appreciated.
Thanks,

Chris Frohlich

Sep 21 '06 #4
I tried with two ASP.NET 2.0 applications in the same application pool and
the same name and couldn't get anything to crash out. Scratch that idea...
heh.

Okay, back to basics.

1. You said the Demo site is failing... is the production site failing or
working successfully?
2. Have you stopped IIS, cleared out the Temporary ASP.NET Files (%SYSTEMROOT%\Microsoft.Net\Framework\[version]\Temporary
Asp.Net Files)?
3. Does the version of .NET match on both sites? i.e.: If you're using 2.0.50727,
is it set to that for both sites?

Thanks!

-dl

--
David Longnecker
Web Developer
Wichita Public Schools, USD 259
The gear should be fine; if you go into the properties of the virtual
directory, on the Virtual Directory tab.

You'll see:

Application name:
Application pool:
I've honestly never attempted to run both with the same information,
but could see where the wires might cross. I'd recommend having
different application names and separate application pools... but I'm
probably a bit more cautious than most with separating memory for web
apps.

Also, on perhaps a seperate note, if you're using a AppSettings key to
store your session token name, make sure that's different between the
two as well.

I'll try it out and see if I can reproduce your error and post back.

-dl

--
David Longnecker
Web Developer
Wichita Public Schools, USD 259
>I will re-do the application pools in a second.

As for the directory/application thing, I see a gear icon. How else
can I verify, and what are the implications?

"David R. Longnecker" wrote:
>>Chris-

Have you checked to see that both applications are:

1) Setup as applications and not just directories (assuming so from
your
post),
2) Each of these are set to different application pools in IIS?
-dl
--
David Longnecker
Web Developer
Wichita Public Schools, USD 259
I am trying to deploy two copies of an application to a single
website using two virtual directories: "2007" (Production) and
"Demo". Each of these applications should point at a different DB,
so my thought was to leave everything the same, make two copies of
the application files, and just edit the Web.Config file in each
copy of the application appropriately.

When I try to bring up the Demo site however, I get the following
error.

"Configuration Error Description: An error occurred during the
processing of a configuration file required to service this
request. Please review the specific error details below and modify
your configuration file appropriately.

Parser Error Message: The entry 'ConnString1' has already been
added."

I have tripple checked the Conn string, and it is correct.
Moreover, I've even tried editing and testing the Web.Config for
"Demo" in VS2005 before redeploying the app with the same results.

Two notes that may be relevant:
1. I "precompiled" the code for both copies of the application
before
deploying it to the web server
2. I had previously deployed a copy of the application to the root
of
the
website I'm deploying to. I have since made sure that the Home
Directory of
the website is Empty before creating the virtual directories for
each
copy of
the application, and I've stopped and restarted the site after
doing
this.
Still no resolution.
Any help on this is greatly appreciated.
Thanks,
Chris Frohlich

Sep 21 '06 #5

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

Similar topics

17
by: Jeff Robichaud | last post by:
Hi, I would like to know if there exists a tool that one can use to test some javascript code before actually running it ? Something that would check the syntax at least ? I found that most...
3
by: Pritam Bhat | last post by:
Hi, I recently upgraded my XML parser and the ComInterop code that I had for my webservice is throwing the following error. For ASP applications, we created a wrapper class on this web service and...
0
by: Roman | last post by:
I'm trying to create the form which would allow data entry to the Client table, as well as modification and deletion of existing data rows. For some reason the DataGrid part of functionality stops...
1
by: D A H | last post by:
I have gotten the same exception in multiple projects. I have solved the underlying problem. My question is if anyone knew of a setting that would cause this exception to be thrown. A...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
28
by: Marc Gravell | last post by:
In Linq, you can apparently get a meaningful body from and expression's .ToString(); random question - does anybody know if linq also includes a parser? It just seemed it might be a handy way to...
1
by: Carlos Sosa Albert | last post by:
Hello people, I'm having an issue registering an assembly in ONE server. I've already tried to reinstall the .NET framework 2.0 but the error is still there. I enabled the logging but nothing...
18
by: Just Another Victim of the Ambient Morality | last post by:
Is pyparsing really a recursive descent parser? I ask this because there are grammars it can't parse that my recursive descent parser would parse, should I have written one. For instance: ...
3
by: ups_genius | last post by:
Hi everyone! I created an error parser using the existing CDT stuff by basically copying some of the GNU / make / ... error parsers' code. I also added the extension point for the new error...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
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...
1
isladogs
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...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.