Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc-Int

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
12/29/2008 6:58:09 AM
Gravatar
Total Posts 118

Re: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc-Int

 

Joe

Just tried removing

<add name="svc-ISAPI-2.0" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" resourceType="Unspecified" preCondition="integratedMode" />

And it works fine on Win2008 - If you need somewhere to do testing on win2008 - let me know.

 

Regards

Neil

12/29/2008 7:06:15 AM
Gravatar
Total Posts 18439

Re: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc-Int

Neil,

Thanks! Its good to know there are apparently differences based on OS. I've been meaning to setup a Win 2008 test machine here. I installed it on a machine I have here with drive cradles that make it easy to swap out different OSes, but the nic card I have in the machine doesn't have a driver for Win 2008, so I either need to get another nic card or set it up as a Virtual Machine. Guess I'll go ahead and order the nic card as I'd really rather have a physical machine to test on.

Best,

Joe

12/29/2008 7:17:42 AM
Gravatar
Total Posts 88

Re: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc

Sorry Joe, in my haste I wasn't thinking clearly. the problem is on my remote installation with webhostforasp.net, not on my own PC. On my home PC it works fine, using Windows XP and yes with .NET 3.5 SP1 installed. My host  is supposed to be using 3.5 as well but I will double check the settings with them, will let you know.

thks

Leah

12/29/2008 7:25:22 AM
Gravatar
Total Posts 18439

Re: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc-Int

Hi Leah,

Now I'm confused. I thought you were able to replicate the original problem on your local XP machine and commenting out the entire system.WebServer handlers section solved it there too, while commeting out only those 2 lines did not solve it but caused an out of memory error on your local machine. Is that correct or incorrect?

Best,

Joe

12/29/2008 7:38:20 AM
Gravatar
Total Posts 88

Re: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc

Hi Joe,

I upgraded successfully on my local machine (using Windows XP, with .NET 3.5 SP1 installed). Have had no problems with 2.8.8.1 on my local machine.

I upgraded on the remote server and received the error message i refer to in my original post. I then commented out the <handlers> section in the web.config file on the remote server, which worked fine. Then I commented out only the 2 lines you asked for, again on the remote server. This then led to the memory exception.

So the handlers section is causing a problem on the remote server, but not on my local PC. I've gotten round it on the remot server for now by commenting out the whole section and re-started IIS which worked fine.

I do not know which exact version of Windows my host (webhostforasp.net) is using, but have raised a support ticket to find out. They are supposed to have .NET 3.5 and have asked them to check settings in my application pool.

Hope that makes things clearer.. let me know if not!

thks,

Leah

12/29/2008 8:35:54 AM
Gravatar
Total Posts 18439

Re: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc-Int

Thanks Leah!

Now it is all clear to me.

Best,

Joe

12/30/2008 3:03:38 AM
Gravatar
Total Posts 88

Re: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc

Hi Joe,

The remote server uses Windows 2008. .NET 3.5 SP1 hadn't been installed, they've now installed it for me, and now just commenting out those 2 lines works fine. So before they installed SP1, I got a memory exception with only 2 lines commented out, now I don't.

Hope that helps,

Leah

12/31/2008 7:29:21 AM
Gravatar
Total Posts 18439

Re: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'svc-Int

Thanks Leah, it does help.

Happy New Year!

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.