Win Mobile 6.5.3仿真器无法连接到Internet

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

格斯

Gus*_*Gus 6

经过大量浪费的研究后,我们决定向Microsoft支付费用来回答这个问题.

微软表示

问题

在桌面上运行Windows Mobile 6.5模拟器时,模拟器发送的TCP/IP数据包不会通过VPN软件路由到公司网络.

仿真器使用的网络接口在低于VPN应用程序所看到的点插入TCP/IP堆栈,因此它们被路由到Internet.通过使用桌面传递(在DMA模式下的WMDC并在设备管理器中支持模拟器),VPN应用程序确实看到了数据包并根据需要将它们路由到公司网络.


要遵循的程序包括以下步骤:

  1. 在Windows计算机(设备模拟器执行的计算机上)上启动VPN客户端.
  2. 启动Visual Studio并打开使用VPN的解决方案.
  3. 目标设备(在工具栏或项目属性中)设置为所需的模拟器.
  4. 单击工具 - >连接到设备...
  5. 在连接到设备对话框,突出显示设备列表框所需的仿真器,然后单击连接.
  6. 等待连接成功,然后单击" 关闭".
  7. 单击工具 - >设备仿真器管理器...
  8. 最大化Device Emulator Manager.
  9. 在数据存储树中找到要使用的模拟器.
  10. 如果其名称前没有绿色箭头图标,请右键单击其名称,然后从右键上下文菜单中单击" 连接 ".
  11. 当模拟器名称以绿色箭头图标为前缀时,右键单击名称并从右键上下文菜单中选择Cradle.
  12. 最小化Device Emulator Manager窗口.
  13. Windows Mobile Device Center窗口将打开.(关闭可能出现的任何Windows Mobile Member Center窗口.)
  14. 在"移动设备中心"窗口中,连接的复选标记应位于设备图像下方的左侧.
  15. 单击" 连接"而不设置设备.
  16. 将鼠标悬停在移动设备设置上.
  17. 单击" 连接设置"链接.
  18. 将打开"连接设置"对话框.确保检查所有四个复选框; 第一次下拉选择了DMA; 并且第二次下拉选择了互联网.(如果主机上有代理执行,请在第二个下拉列表中选择"工作网络".)
  19. 单击" 确定"关闭"连接设置"对话框.
  20. 最小化Windows Mobile设备中心窗口.

以通常的方式调试应用程序.希望这可以帮助.

格斯