I've tried to deploy the website in windows server 2008 (IIS 7.0). However, it does not work successfully. I developed the website using windows xp and I also have tried to published in windows xp and it works great.
For that projects, I use AJAX. in windows server 2008(IIS 7.0) I am sure that I have installed ajax extension which is the same version that i have installed in my local machine ( windows xp).
Here is the error details that I've got, any idea how to solve this error?
As the error message indicates , there are duplicate collection entry. You can try add the following section at the beginning of the handler section:
<remove name="ScriptHandlerFactory">
The website will inherits the settings form parent level . This should be the reason of this issue. You can check if there is a web.fig file in the parent web content folder(e.g. C:\inetpub\wwwroot\arif\ or C:\inetpub\wwwroot ) and an duplicate collection
entry in it.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
I have a similar problem today. Solution from Microsoft is http://support.microsoft.com/kb/942055. Which seems reasonable, except that doesn't apply to my problem as my website is already top level, no
chance such duplicate name appears in applicationHost.config.
Then I found the cause. In my IIS 7, say default directory is c:\mywebsite\ for physical path. And then inside that I added an application, say UI with the same physical path (Don't ask why, I just inherit this).
So the application will be called as http://localhost/UI to display what in c:\mywebsite.
Then I started to have error complaining duplicate httpModule which is impossible to be duplicate as it is customised.
Figure out that's because I set Application Pool on the top level differently with that on UI application level. Top level is Classic .NET AppPool, the other is DefaultAppPool.
I have a similar problem today. Solution from Microsoft is http://support.microsoft.com/kb/942055. Which seems reasonable, except that doesn't apply to my problem as my website is already top level, no
chance such duplicate name appears in applicationHost.config.
Then I found the cause. In my IIS 7, say default directory is c:\mywebsite\ for physical path. And then inside that I added an application, say UI with the same physical path (Don't ask why, I just inherit this).
So the application will be called as http://localhost/UI to display what in c:\mywebsite.
Then I started to have error complaining duplicate httpModule which is impossible to be duplicate as it is customised.
Figure out that's because I set Application Pool on the top level differently with that on UI application level. Top level is Classic .NET AppPool, the other is DefaultAppPool.
Careless!
I have absolutely no idea what this means. Can someone translate please?
arifliminto8...
2 Posts
Problem with Cannot add duplicate collection entry of type 'add' with unique key attribute 'name'...
Jun 30, 2009 04:47 AM|LINK
Hi, my name is Arif,
I've tried to deploy the website in windows server 2008 (IIS 7.0). However, it does not work successfully. I developed the website using windows xp and I also have tried to published in windows xp and it works great.
For that projects, I use AJAX. in windows server 2008(IIS 7.0) I am sure that I have installed ajax extension which is the same version that i have installed in my local machine ( windows xp).
Here is the error details that I've got, any idea how to solve this error?
<div class="content-container"> </div> <div class="content-container"> </div> <div class="config_source content-container"> </div>IIS7 web.config scripthandlerfactory http error 500.19 iis 7.0
Leo Tang - M...
4161 Posts
Microsoft
Re: Problem with Cannot add duplicate collection entry of type 'add' with unique key attribute 'n...
Jul 03, 2009 07:42 AM|LINK
Hi,
As the error message indicates , there are duplicate collection entry. You can try add the following section at the beginning of the handler section:
<remove name="ScriptHandlerFactory">
The website will inherits the settings form parent level . This should be the reason of this issue. You can check if there is a web.fig file in the parent web content folder(e.g. C:\inetpub\wwwroot\arif\ or C:\inetpub\wwwroot ) and an duplicate collection entry in it.
Feedback to us
Develop and promote your apps in Windows Store
wantnewdesk
1 Post
Re: Problem with Cannot add duplicate collection entry of type 'add' with unique key attribute 'n...
Mar 18, 2013 04:57 PM|LINK
I have a similar problem today. Solution from Microsoft is http://support.microsoft.com/kb/942055. Which seems reasonable, except that doesn't apply to my problem as my website is already top level, no chance such duplicate name appears in applicationHost.config.
Then I found the cause. In my IIS 7, say default directory is c:\mywebsite\ for physical path. And then inside that I added an application, say UI with the same physical path (Don't ask why, I just inherit this).
So the application will be called as http://localhost/UI to display what in c:\mywebsite.
Then I started to have error complaining duplicate httpModule which is impossible to be duplicate as it is customised.
<httpModules>
<add name="SecurityModule" type="blabla, bla" />
Figure out that's because I set Application Pool on the top level differently with that on UI application level. Top level is Classic .NET AppPool, the other is DefaultAppPool.
Careless!
FrustratedAT...
1 Post
Re: Problem with Cannot add duplicate collection entry of type 'add' with unique key attribute 'n...
Mar 21, 2013 03:32 PM|LINK
I have absolutely no idea what this means. Can someone translate please?