WCF common issues

  1. 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.

2008-04-21_170019

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

 

posted @ 2008-04-21 13:02  Vincent Yang  阅读(347)  评论(0编辑  收藏  举报