![](/img/trans.png)
[英]500 Interval Server Error while accessing WCF service from http and Google Chrome Extension Simple REST Client
[英]500 Internal Server error while accessing WCF service from http and unable to add service reference for the same reason
我正在嘗試訪問駐留在我網站子域中的 WCF 服務。 子域所在服務器的屬性如下:
但問題是,當我嘗試訪問像http://mysubdomain.mydomain.com/Service1.svc這樣的服務時,它給了我
500 - 內部服務器錯誤。
雖然它在本地主機上運行良好。 我還將 web.config 中的屬性更改為:
<services>
<service behaviorConfiguration="WCFService.Service1Behavior"
name="WCFService.WrangleCore">
<endpoint address="http://mysubdomain.mydomain.com/ServiceCore.svc" binding="basicHttpBinding" contract="WCFService.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WCFService.Service1Behavior">
<!-- To avoid disclosing metadata information, set the value below to false before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
請告訴我解決這個問題的方法。
值得檢查您的 DNS 后綴是否配置正確。 由於一個愚蠢的拼寫錯誤,我也看到了它!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.