2014-12-31 223 views
0

目前,当我的Windows Mobile 6.5上运行WCF服务,它显示WCF,在Windows Mobile 6.5

System.Net.WebException was unhandled 
    Message="WebException" 
    StackTrace: 
     at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult) 
     at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 
     at SmartDeviceProject1.localhosttesting.SKHService.AddNumber(Double n1, Boolean n1Specified, Double n2, Boolean n2Specified, Double& AddNumberResult, Boolean& AddNumberResultSpecified) 
     at SmartDeviceProject1.Form1.button1_Click(Object sender, EventArgs e) 
     at System.Windows.Forms.Control.OnClick(EventArgs e) 
     at System.Windows.Forms.Button.OnClick(EventArgs e) 
     at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam) 
     at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) 
     at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) 
     at System.Windows.Forms.Application.Run(Form fm) 
     at SmartDeviceProject1.Program.Main() 

任何的错误,知道如何解决呢?目前,如果我使用Windows窗体进行连接,则可以使用WCF,但如果使用模拟器或设备,则会引发此异常。

回答

0

我曾搜索过这个问题,发现无关的结果。我发现可能有多个理由看到此消息。

要找出您的问题,请先将此行添加到您的WCF配置文件,然后重点关注给定的详细例外情况。

<serviceDebug includeExceptionDetailInFaults="True" />