0
我有服務「默認」頁面的問題。像往常一樣,我已經創建了服務,並且無法使其工作。WCF服務頁面不出現,但幫助頁面工作
默認服務頁面不顯示。它顯示:
未找到端點。請參閱服務幫助頁面以構建對服務的有效請求。
當我點擊幫助頁面鏈接時,顯示列出操作的普通幫助頁面。
我的配置有什麼問題?
這裏是我的web.config文件:
<?xml version="1.0"?>
<configuration>
<appSettings />
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime />
</system.web>
<system.serviceModel>
<services>
<service name="PromoCenyParseService.PromoCenyParseService"
behaviorConfiguration="ServiceBehavior">
<endpoint address="http://xxxxxxx.ovh.net:7741/PromoCenyParseService.svc"
binding="webHttpBinding"
contract="PromoCenyParseService.IPromoCenyParseService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior>
<webHttp helpEnabled="true" />
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
有你貼的ServiceContract和OperationContract特性在接口上服務 ? – Max
您是否試過使用[WCF Test Client](http://msdn.microsoft.com/zh-cn/library/bb552364(v = vs.110).aspx)訪問您的服務? 轉至:「c:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ WcfTestClient.exe」(將路徑更改爲您自己的版本) –