0

何が問題なのかわかりませんが、WCF サービスを開始できませんか?

標準的な方法でさえ機能しGetDataません。

それらはすべてエラーでタイムアウトします:

localhost:9590/Service.svc からメタデータを取得できません

ただし、コードは一切変更していません。以前はすべての WCF サービスが機能していましたが、現在は機能していません。

<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0"/>
  </system.web>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- 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>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <!--
        To browse web app root directory during debugging, set the value below to true.
        Set to false before deployment to avoid disclosing web app folder information.
      -->
    <directoryBrowse enabled="true"/>
  </system.webServer>
</configuration>
4

1 に答える 1

0

サービス メタデータ エンドポイントをコードまたはサービス Web.config に追加しますか?

メタデータ エンドポイントの欠落は、私が考えることができる唯一のものです。

localhost を別の場所にリダイレクトできていない限り..

于 2012-11-22T17:36:04.887 に答える