2

IISにwcfサービスを展開しました..「EndPoint Not Found」メソッドの1つにアクセスしたいときにこのエラーが表示されますが、ローカルでは正常に機能し、データが返されます。

これが私のWeb.configバインディング情報です

 <system.webServer>
    <directoryBrowse enabled="false" />
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
  <system.serviceModel>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    <services>
      <service name="RTAService" behaviorConfiguration="WtfServiceBehaviour">
        <endpoint address="" binding="webHttpBinding" bindingConfiguration="wtfSslBinding" behaviorConfiguration="WebHttpBehaviour" contract="IRTAService" />
        <endpoint address="soap" binding="basicHttpBinding" contract="IRTAService"/>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"  />
      </service>
    </services>
    <bindings>
      <webHttpBinding>
        <binding name="wtfSslBinding" />
        <binding name="streamedBinding"
                 maxBufferSize="65536"
                 maxReceivedMessageSize="2000000000"
                 transferMode="Streamed">
          <readerQuotas maxDepth="500000000"
         maxArrayLength="500000000" maxBytesPerRead="500000000"
         maxNameTableCharCount="500000000" maxStringContentLength="500000000"/>
          <security mode="None" />
        </binding>

      </webHttpBinding>
    </bindings>
    <behaviors>
      <endpointBehaviors>
        <behavior name="WebHttpBehaviour">
          <webHttp helpEnabled="true" defaultBodyStyle="Wrapped" defaultOutgoingResponseFormat="Json"
            automaticFormatSelectionEnabled="false" />
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="WtfServiceBehaviour">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

そのための回避策を教えてください。

4

1 に答える 1

0

どこにもエンドポイントが定義されていません。あなたの設定はこのようなものでなければなりません。

  <endpoint address="http://localhost:57800/Services.svc" binding="basicHttpBinding"
            bindingConfiguration="BasicHttpBinding_IServices"     contract="MYServices.IServices"
            name="BasicHttpBinding_IServices" />
于 2012-06-28T21:57:08.883 に答える