"无法建立连接,因为目标计算机主动拒绝了它127.0.0.1:52154"我收到以下错误:
没有终点收听 http://localhost:52154/DocumentGenerator.svc可以接受 信息。这通常是由错误的地址或SOAP操作引起的。 有关更多详细信息,请参阅InnerException(如果存在)。
InnerException说:{"无法建立连接,因为目标计算机主动拒绝它127.0.0.1:52154"}
我的App.config如下:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="DocumentGeneratorSvcHttp">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" />
</security>
</binding>
<binding name="DocumentGeneratorSvc" />
</basicHttpBinding>
<netTcpBinding>
<binding name="DocumentGeneratorSvcTcp" />
</netTcpBinding>
</bindings>
<client>
<endpoint address="http://documentgenerator-dev/DocumentGenerator.svc"
binding="basicHttpBinding" bindingConfiguration="DocumentGeneratorSvcHttp"
contract="DocGenServiceReference.IDocumentGeneratorSvc" name="DocumentGeneratorSvcDev" />
<endpoint address="http://localhost:52154/DocumentGenerator.svc"
binding="basicHttpBinding" bindingConfiguration="DocumentGeneratorSvcHttp"
contract="DocGenServiceReference.IDocumentGeneratorSvc" name="DocumentGeneratorSvcLocal" />
</client>
</system.serviceModel>
</configuration>
请帮我找出问题所在。