我在IIS託管WCF服務,但它給以下錯誤: -WCF服務託管
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
我在.Net框架4.0開發了這個服務和SOAP應用basicHttpBinding
。
我也試過aspnet_regiis.exe -i
命令,但仍然是我的問題沒有得到解決。
HTTP綁定情況如下: -
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServBehave">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
你需要向我們展示了服務器端和客戶端配置和你用來訪問服務的代碼 –
我設置了Http窗口功能,現在它正在工作,但現在問題來自於訪問來自服務的數據。現在我試圖訪問服務使用我的機器IP地址以下我的服務詳細信息爲http://MyMachineIP/wcfservice/Service1.svc/GetUserData但它給404未找到錯誤。 –
再次向我們展示你的配置!**還有:'basicHttpBinding'是一個** SOAP **綁定 - 你不能用瀏覽器瀏覽它來測試SOAP綁定 - 你需要一個支持SOAP的測試工具,如WCF Test Client或Soap UI –