2011-07-28 10 views
1

でWCFサービスを公開:web.configファイルエラーは、私が有効にIIS 7.5 net.tcpのWCFサービスを公開しようとしていると私は次のエラーを取得net.tcpバインディング

添付

Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].

<system.serviceModel> 
    <services> 
     <service name="BLAlgorithmService" behaviorConfiguration="BLAlgorithmService.Behavior"> 
     <host> 
      <baseAddresses> 
      <add baseAddress="http//localhost:56795/Algorithemservice" /> 
      </baseAddresses> 
     </host> 
     <endpoint address="" 
        binding="netTcpBinding" 
        bindingConfiguration="DuplexBinding" 
        contract="IBLAlgorithmService" /> 
     <endpoint address="mextcp" binding="mexTcpBinding" contract="IMetadataExchange"/> 
     </service> 
    </services> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior name="BLAlgorithmService.Behavior" > 
      <serviceMetadata httpGetEnabled="true"/> 
      <serviceThrottling maxConcurrentSessions="10000" /> 
      <serviceDebug includeExceptionDetailInFaults="true"/> 
      <dataContractSerializer maxItemsInObjectGraph="2147483647"/> 

     </behavior> 
     <behavior name = "MEX"> 
      <serviceMetadata httpGetEnabled="true"/> 
      <serviceThrottling maxConcurrentSessions="10000" /> 
      <serviceDebug includeExceptionDetailInFaults="true"/> 
      <dataContractSerializer maxItemsInObjectGraph="2147483647"/> 
     </behavior> 

     </serviceBehaviors> 
    </behaviors> 

    <bindings> 

     <netTcpBinding> 
     <binding name="DuplexBinding" 
       maxReceivedMessageSize="64000000" 
       maxBufferPoolSize="64000000" 
       closeTimeout="02:50:00" 
       openTimeout="02:50:00" 
       receiveTimeout="02:50:00" 
       sendTimeout="02:50:00"> 
      <readerQuotas 
       maxDepth="2147483647" 
       maxStringContentLength="2147483647" 
       maxArrayLength="2147483647" 
       maxBytesPerRead="2147483647" 
       maxNameTableCharCount="2147483647" /> 

      <reliableSession ordered="true" 
      inactivityTimeout="10:50:00" 
      enabled="false" /> 
      <security mode="None"/> 
     </binding> 
     </netTcpBinding> 
    </bindings> 
    </system.serviceModel> 

この問題上の任意のヘルプは親切にappriciatedされ、*

ロニー* 強いテキスト
+0

あなたのSvcファイルがある場合は、ベースアドレスを指してみてください。そしてあなたのブラウザでsvcファイルを訪問してみてください。 –

答えて

1

あなたのベースアドレスは01でなければなりません

+0

ありがとうございました。私は同じエラーが発生しているとアドバイスされたままweb.configサービスを変更しました** NetTcpBindingをバインドするエンドポイントのnet.tcpスキームに一致するベースアドレスを見つけることができませんでした。登録されたベースアドレススキームは[http]です。**ありがとう、Rony – ron