1

NetTCPが有効になっているIIS7でホストされているWCFサービスがあります。

これは、SVCファイルがある%apppath%\の私のweb.configです。

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="Search.Querier.WCF.Querier" behaviorConfiguration="SearcherServiceBehavior">
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8050/SearcherService"/>
          </baseAddresses>
        </host>
        <endpoint address="net.tcp://localhost:9000/SearcherService"
                  binding="netTcpBinding"
                  bindingConfiguration="Binding1"
                  contract="Search.Querier.WCF.IQuerier" />
      </service>
    </services>
    <bindings>
      <netTcpBinding>
        <binding name="Binding1"
                     hostNameComparisonMode="StrongWildcard"
                     sendTimeout="00:10:00"
                     maxReceivedMessageSize="65536"
                     transferMode="Buffered"
                     portSharingEnabled="false">
          <security mode="None">
            <transport clientCredentialType="None" />
            <message clientCredentialType="None" />
          </security>
        </binding>
      </netTcpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="SearcherServiceBehavior">
          <serviceMetadata httpGetEnabled="true" httpGetUrl=""/>
          <serviceDebug includeExceptionDetailInFaults="true"  />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
  <system.web>
    <compilation debug="true" />
  </system.web>
</configuration>

何らかの理由で、指定したようにポート8050にロードする代わりに、青とベージュのサイトに次のサイトが表示されます。

http :// localhost / SearcherService / searcherservice.svc であり、 http:// localhost:8050 / SearcherService/searcherservice.svcではありません

また、走ろうとすると

svcutil.exe http://process.mycomp.com/SearcherService/SearcherService.svc?wsdl

URLにレンダリングされたページにあるように、エラーが発生します。

Metadata contains a reference that cannot be resolved: 'http://process.mycomp.com/SearcherService/SearcherService.svc?wsdl'

しかし、私はそれを私のweb.configの他のどこにも指定していません

他にあり得る場所はありますか?

4

1 に答える 1

2

MEX エンドポイントがありません。次のリンクをご覧ください。

http://bloggingabout.net/blogs/dennis/archive/2006/11/09/WCF-Part-4- 3A00 -Make-your-service-visible-through-metadata.aspx

于 2009-09-23T21:25:06.420 に答える