I have a Internet Information Services installed on a Windows Server 2019.
In the IIS I have hosted a svc service, but when i browse the service i'm getting the error below:
Module IIS Web Core
Error Code 0x800700b7
Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'WebServiceHandlerFactory-ISAPI-4.0_64bit'
But when i remove these 4 handler line from the web.config, the service works fine:
<handlers>
<add name="WebServiceHandlerFactory-ISAPI-4.0_64bit" path="*.asmx" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="svc-ISAPI-4.0_64bit" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
</handlers>
I have also another environment with the same setup, but here the service works fine without removing the handler lines from the web.config.
Can anyone explain to me what the handler line does and why I need them, also why i need to remove them in one environment but not in another environment.
thanks