2012-07-05 80 views
1

仍试图记录请求在提琴手2:(wcf服务没有抓住小提琴手2?

我创建了一个简单的WcfService1在2010 vs.net时,我把它称为wcftestclient.exe 它不会在任何提琴手显示任何想法

的web.config

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

    <system.net> 
    <defaultProxy> 
     <proxy bypassonlocal="False" usesystemdefault="True" proxyaddress="http://127.0.0.1:8888" /> 
    </defaultProxy> 
    </system.net> 

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

</configuration> 
+1

我在配置中看不到任何WCF端点和WCF绑定配置 - 它们在哪里?如果你想让它们指向一个代理,你需要指定某个地方 - 而''中的'proxyAddress'可能不会被WCF – 2012-07-05 13:43:34

回答

3

你解决使用localhost作为主机名端点?用你的机器名或网络IP地址,因为流量localhost127.0.0.1不会被捕获。

+0

现在使用machinename拾取,但它返回错误:添加服务失败。服务元数据可能无法访问。确保您的服务正在运行并展示元数据。 – user603007 2012-07-06 00:26:01