主機我得到嘗試通過瀏覽器在端點沒有發現當ASP.NET
http://localhost:10093/Services/Service1.svc
訪問我的服務時,我得到「未找到終點」,「錯誤:無法從http://localhost:10093/Services/Service1.svc獲取元數據」嘗試當從wcftestclient訪問相同的地址。
如果我把在服務實現它打一個斷點,所以我想SVC文件是否設置正確:
<%@ ServiceHost Language="C#" Debug="true"
Service="MyApp.Core.Service.Service.MyAppService,MyApp.Core.Service"
Factory="CommonServiceFactory.WebServiceHostFactory,CommonServiceFactory" %>
這裏是我的配置:
<system.serviceModel>
<services>
<service name="MyApp.Core.Service.Service.MyAppService,MyApp.Core.Service"
behaviorConfiguration="MainServiceBehavior">
<endpoint name="newEndpoing"
binding="basicHttpBinding" bindingConfiguration=""
contract="MyApp.Core.Service.IMyAppService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MainServiceBehavior">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
這裏是這個問題的樣本項目 - http://www.nippyzip.com/uploads/101003074000-57717.zip – chief7 2010-10-04 02:23:14
我有同樣的問題。沒有終點無法爲我的Silverlight應用程序生成客戶端 – Evgeny 2011-07-04 15:10:32