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,但如果使用模擬器或設備,則會引發此異常。