Gus*_*Gus 1 c# mobile-emulator
环境:Windows Mobile 6.5.3专业VGA模拟器
在工具 - >设备仿真器管理器中,我连接到仿真器并支撑设备(左侧的图标从绿色箭头变为网络连接).
我试图通过代理访问Web服务.在Windows 7 Professional桌面Windows应用程序环境中,我可以访问Web服务; 在模拟器中(我在设备上测试之前的步骤 - MC75A)我得到以下内容:
_HResult -2146233079 int
_innerException null System.Exception
_message "Could not establish connection to network." string
_methodDescs {System.IntPtr[19]} System.IntPtr[]
HResult -2146233079 int
InnerException Could not evaluate expression System.Exception
Message "Could not establish connection to network." string
StackTrace
at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
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 MobilePOS.WebReference.Service.FetchNewSession(String OperatorCode, String Password)
at MobilePOS.TelechargeProxy.FetchNewSession()
at MobilePOS.Username_Password.fetch_new_session(String user_name, String password)
at MobilePOS.Username_Password.user_valid(String user_ID, String password)
at MobilePOS.Login.quick_login_BUT_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.EnterModalDialog(IntPtr hwnModal)
at System.Windows.Forms.Form.ShowDialog()
at MobilePOS.Mobile_POS.Mobile_POS_Dispatcher()
at MobilePOS.Program.Main()
m_Response null System.Net.WebResponse
m_Status ConnectFailure System.Net.WebExceptionStatus
Response Could not evaluate expression System.Net.WebResponse
Status ConnectFailure System.Net.WebExceptionStatus
Run Code Online (Sandbox Code Playgroud)
根据同事的建议,我尝试访问www.google.com.结果是
Cannot connect with current connection
settings. To change your connection settings,
tap Settings.
Run Code Online (Sandbox Code Playgroud)
当我点击设置时,我会得到
My ISP
Add a new modem connection
My Work Network
Add a new modem connection
Add a new VPN server connection
Set up my proxy server
Run Code Online (Sandbox Code Playgroud)
我尝试了File-> Configure-> Network并检查了启用NE2000 ....重置后(软)没有任何改变.
此时我迷失了.
任何帮助,将不胜感激.
TIA
格斯
经过大量浪费的研究后,我们决定向Microsoft支付费用来回答这个问题.
微软表示
问题
在桌面上运行Windows Mobile 6.5模拟器时,模拟器发送的TCP/IP数据包不会通过VPN软件路由到公司网络.
解
仿真器使用的网络接口在低于VPN应用程序所看到的点插入TCP/IP堆栈,因此它们被路由到Internet.通过使用桌面传递(在DMA模式下的WMDC并在设备管理器中支持模拟器),VPN应用程序确实看到了数据包并根据需要将它们路由到公司网络.
要遵循的程序包括以下步骤:
以通常的方式调试应用程序.希望这可以帮助.
格斯