0

次の Visual Studio Web アプリケーション構造があります。

CustomerManagement\
  - Services
    - Customers.aspx
      - Customers.aspx.cs
    - CustomersWcfDS.svc
  - Default.aspx
  - web.config

次のコードは<configuration>、web.config ファイル内にあります。

<system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="BasicHttpBinding_ICustomers" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="http://localhost:1112/Services/Customers.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ICustomers" contract="CustomersService.ICustomers" name="BasicHttpBinding_ICustomers" />
</client>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
</system.serviceModel>

プロジェクトをビルドし、以下の URL を入力しますが反応がありません。

http://localhost:1112/Services/Customers.svc

私も次のことを試しました:

http://localhost:1112/Services/CustomersWcfDS.svc

そしてまた

http://localhost:1110/Services/Customers.svc

http://localhost:1110/Services/CustomersWcfDS.svc

(プロジェクト プロパティPort numberが に設定されているため、ポート 1110 がテストされました1110。)

ただし、次の図のようなものは表示されません

ここに画像の説明を入力

では、WCF サービスの URL がどこに移動したかを教えてくれる専門家はいますか?

4

1 に答える 1

0

こんにちは、あなたのイメージに基づいて、

サービス名を Customers.svc に変更したと思います。しかし、それでも前のものを参照しています。できることは、ソリューション全体で「SimpleService.svc」を見つけて、名前を Customers.svc に変更することです。問題がある場合は、コメントとして記入してください。

于 2013-01-14T04:59:40.780 に答える