2012-09-25 20 views
0

這是我開發Web服務的第一個項目。 其現有的應用程序。我的項目是classlibrary ..到此我們添加了webservice.svc ..類庫中的webservice主機錯誤

要查看web服務wsdl ..什麼是步驟..?如何在IIS中發佈服務。 請任何人都可以建議我..

當我發佈網站我應該發佈爲web部署?

我試圖發佈爲webdeploy ..在此之前,我在IIS中創建網站,並試圖發佈到IIS中的託管網站..publish成功..當我瀏覽服務越來越低的錯誤,這是什麼意思。 。請幫助我..

作爲ServiceHost指令中的Service屬性值提供,或者在配置元素system.serviceModel/serviceHostingEnvironment/serviceActivations中找不到。

複製我的網絡配置文件..

<system.web> 
<compilation debug="true" targetFramework="4.0" /> 
</system.web> 
<system.serviceModel> 
<behaviors> 
    <serviceBehaviors> 
    <behavior> 
     <serviceMetadata httpGetEnabled="true"/> 
       <serviceDebug includeExceptionDetailInFaults="false"/> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 
</system.serviceModel> 
<system.webServer> 
<modules runAllManagedModulesForAllRequests="true"/> 
</system.webServer> 

回答

1

我固定我的問題。服務主機服務名稱不匹配..我試圖添加測試WCH服務和比較.svc文件..

修復並在IIS中運行到..