Sunday, December 24, 2017
WCF services don’t run on IIS 8 with the default configuration, because the webserver doesn’t know, how to handle incoming requests targeting .svc files. You can teach it in two steps:
1. Add a new MIME type:
Extension: .svc MIME type: application/octet-stream
2. Add a new Managed HTTP Handler:
Go itRequest path: *.svc
Type: System.ServiceModel.Activation.HttpHandler
Name: svc-Integrated
Saturday, February 23, 2013
Open command prompts and run these commands one by one on command prompt
- cd /d C:\Windows\Microsoft.NET\Framework\v4.0.30319
- iisreset /stop
- aspnet_regiis -i
- iisreset /start
- %systemroot%\system32\inetsrv\appcmd set config /section:isapiCgiRestriction /[path='%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll'].allowed:True
- %systemroot%\system32\inetsrv\appcmd set config /section:isapiCgiRestriction /[path='%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll'].allowed:True
Subscribe to:
Posts (Atom)