Thursday, 4 March 2010

Can't deploy a WCF Service App from Visual Studio into IIS 7

One of the problems i encountered when trying to deploy a WCF Service App was this little doozie:

'Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ScriptHandlerFactory''

I got around it by adding the following line into the <handlers> tag of the tag in my web.config file and redeploying:

< remove name="ScriptHandlerFactory"/>
< remove name="ScriptHandlerFactoryAppServices"/>
< remove name="ScriptResource"/>

Also, this line at the BEGINNING of the <modules> tag :

< remove name="ScriptModule"/>

That seemed to fix it for me!

No comments:

Post a Comment