WCF common issues
- Plain text return for WCF.svc files from IIS or xxxx can not find svc extension
Reason:
Because svc does not register to IIS probably.
Solutions:
C:\>"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i
Parameter:
-i - Install this version of Windows Communication Foundation and
update scriptmaps at the IIS metabase root and for all scriptmaps
below the root. Existing scriptmaps of lower version are upgraded
to this version.
Service 'xxxxx' has zero application (non-infrastructure) endpoints.
Reason:
Because when you host your WCF service, you need to web.config file to specify the endpoints. (If you create WCF service from website, you won't see this error message. This only happens when you create WCF Service library by using WCF Service library, the WCF Service library by default using App.config)
Solution:
Rename App.config to Web.config

浙公网安备 33010602011771号