1

仍在尝试在提琴手 2 中记录请求:(

我在 vs.net 2010 中创建了一个简单的 WcfService1,当我在 wcftestclient.exe 中调用它时,它不会出现在 Fiddler 中。有人知道吗?

网络配置

<?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>
4

1 回答 1

3

您是否使用主机名来寻址端点localhostlocalhost使用您的机器名称或网络 IP 地址,因为流量127.0.0.1不会被捕获。

于 2012-07-05T13:26:59.997 回答