asp.net - Webconfig error ASPX and ASHX -


i have been put in charge of maintaining old legacy website(hasn't been touched in maybe 4-5 years) using aspx , ashx. website working decently on server 2003, web host forced move 2008. upon moving 2008 received error

config error    cannot add duplicate collection entry of type 'add' unique key attribute 'name' set 'webcoremodule.ashx_*'   178:       <add name="scriptresource" precondition="integratedmode" verb="get,head" path="scriptresource.axd" type="system.web.handlers.scriptresourcehandler, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />   179:       <add name="webcoremodule.ashx_*" path="webcoremodule.ashx" verb="*" type="radactive.webcontrols.iload.core.webcoremodule, radactive.webcontrols.iload.core" precondition="integratedmode,runtimeversionv2.0" />   180:     </handlers> 

i have done quite bit of research , made several attempts changing , playing _* no avail, tried recommendation on post here suggesting add <remove name "webcoremodule.ashx_*" /> start of handler tag, met limited success. website loads, smtp.send(msgmail) email not send, , no errors displayed. normally, try figure out on own, since considered down scenario (just deleting line allows website run, functions example emailing not work) appreciate get. here remainder of config

<handlers>       <remove name="webservicehandlerfactory-integrated" />       <remove name="scripthandlerfactory" />       <remove name="scripthandlerfactoryappservices" />       <remove name="scriptresource" />       <add name="scripthandlerfactory" verb="*" path="*.asmx" precondition="integratedmode" type="system.web.script.services.scripthandlerfactory, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />       <add name="scripthandlerfactoryappservices" verb="*" path="*_appservice.axd" precondition="integratedmode" type="system.web.script.services.scripthandlerfactory, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />       <add name="webcoremodule.ashx_*" path="webcoremodule.ashx" verb="*" type="radactive.webcontrols.iload.core.webcoremodule, radactive.webcontrols.iload.core" precondition="integratedmode,runtimeversionv2.0" />     </handlers> 

if need additional information please feel free ask, @ wits end , getting heavy grief management. thanks!

try this

<remove name="webcoremodule.ashx_*" /> <add name="webcoremodule.ashx_*" ... 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -