Konnte nicht finden, eine Basis-Adresse, die passt-Schema net.tcp für den Endpunkt mit Bindung NetTcpBinding. Eingetragene Basisadresse Systeme sind [http]

Ich habe mit http für alle diese und wenn ich arbeite mit net.tcp-und beim hinzufügen der Referenz, die ich erhalte eine Fehlermeldung wie

Konnte nicht finden, eine Basis-Adresse, die passt-Schema net.tcp für den Endpunkt mit Bindung NetTcpBinding. Eingetragene Basisadresse Systeme sind [http].

meine web.config

<?xml version="1.0"?>
<configuration>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <services>
      <service behaviorConfiguration="servicebehave" name="WcfServ.Service1">
        <endpoint address="" binding="netTcpBinding" 
          bindingConfiguration="" name="nettcp" contract="WcfServ.IService1" />

        <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
          name="mex" contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="net.tcp://localhost:51560/Service1.svc" />
           <add baseAddress="http://localhost:8080/Service1.svc"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <bindings>
      <netTcpBinding>
        <binding name="netTcpBinding">
          <security mode="Transport" />
        </binding>
      </netTcpBinding>

    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="servicebehave">
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="false"/>
          <!-- 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="false" />
  </system.serviceModel>
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>

</configuration>

Kann mir jemand sagen, wo ich falsch mache?

  • Was ist Ihr Abspritzen Umgebung?
  • IIS 6.0, aber ich dint-host den Dienst,wenn ich das hinzufügen der service, den ich erhalte den Fehler.
Schreibe einen Kommentar