2012-07-05 31 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