C# WCF测试客户端终结点错误
在我的WCF服务中,WCF测试客户端报告以下错误C# WCF测试客户端终结点错误,c#,wcf,C#,Wcf,在我的WCF服务中,WCF测试客户端报告以下错误 System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]. 我的App.Config是这样的: <?xml version="1.0" en
System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
我的App.Config是这样的:
<?xml version="1.0" encoding="utf-8" ?>
我有一个net.tcp端点-服务运行正常,只是WCF宿主中报告了此错误
有人能解释一下我做错了什么以及如何改正吗
谢谢
MMapp.config wcfTestClient使用的与您的客户端应用程序不同-是在实际测试客户端的应用程序之上吗?您的wcf服务在哪里运行?自托管还是iis?谢谢您的评论。它是标准的WCFTestClient.exe。“错误”显示在“状态”列中。我自己的服务器/客户端应用程序工作得很好。我只想在MSDN WCFTestClient.exe中指出一个恼人的错误就托管而言,它是/将始终是自托管的。您是否检查了“我的服务项目”窗格中的配置文件?当我使用测试客户端时,配置与我的客户端完全不同。
<services>
<service name="Practicon.SAPServiceLibrary.SAPDownloadService" behaviorConfiguration="debug">
<endpoint address="net.tcp://localhost:8082/SAPDownloadService" binding="netTcpBinding" contract="Practicon.SAPServiceLibrary.ISAPDownloadService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<host>
<baseAddresses>
<!--add baseAddress="http://localhost:8083/Design_Time_Addresses/Practicon/SAPServiceLibrary/SAPDownloadService/"/> -->
<add baseAddress="net.tcp://localhost:8082/SAPDownloadService"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="debug">
<!-- To avoid disclosing metadata information,
set the values below to false before deployment -->
<!--<serviceMetadata httpGetEnabled="false" httpsGetEnabled="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="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<client>
<endpoint name="PracticonSAPDownloadEndPointClient"
address="net.tcp://localhost:8082/SAPDownloadService"
binding="netTcpBinding"
bindingConfiguration="BindingConfiguration"
contract="Practicon.SAPServiceLibrary.ISAPDownloadService">
<identity>
<servicePrincipalName value=""/>
</identity>
</endpoint>
</client>
<bindings>
<netTcpBinding>
<binding name="BindingConfiguration"
transferMode="Buffered"/>
</netTcpBinding>
</bindings>