简体   繁体   English

Win Mobile 6.5.3模拟器无法连接到Internet

[英]Win Mobile 6.5.3 Emulator cannot connect to Internet

Environment: Windows Mobile 6.5.3 Professional VGA Emulator 环境:Windows Mobile 6.5.3 Professional VGA仿真器

In the Tools->Device Emulator Manager, I connected to the emulator and cradled the device (the icon to the left changed from a green arrow to a network connection). 在“工具”->“设备仿真器管理器”中,我连接到仿真器并安装了设备(左侧的图标从绿色箭头变为网络连接)。

I am attempting to access Web Services through a Proxy. 我正在尝试通过代理访问Web服务。 In the Windows 7 Professional desktop Windows Application environment, I can access the Web services; 在Windows 7 Professional桌面Windows应用程序环境中,我可以访问Web服务。 in the emulator (the step before I test on the device - MC75A) I get the following: 在仿真器中(在设备上进行测试之前的步骤-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

At the suggestion of a colleague, I attempted to access www.google.com. 应一位同事的建议,我尝试访问www.google.com。 The results were 结果是

Cannot connect with current connection 
settings. To change your connection settings,
tap Settings.

When I tap settings, I am given 当我点击设置时,我得到

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

I tried File->Configure->Network and checked the Enable NE2000.... After a reset (soft) nothing changed. 我尝试了“文件”->“配置”->“网络”,并检查了“启用NE2000”。

At this point I am lost. 在这一点上我迷路了。

Any help would be appreciated. 任何帮助,将不胜感激。

TIA TIA

Gus 古斯

After an inordinate amount of wasted research, we decided to pay Microsoft to answer this question. 经过大量浪费的研究之后,我们决定向Microsoft付费以回答此问题。

Microsoft stated 微软表示

Problem 问题

When you run the Windows Mobile 6.5 emulator on your desktop TCP/IP packets sent by the emulator are not routed via the VPN software to your corporate network. 当您在桌面上运行Windows Mobile 6.5仿真器时,仿真器发送的TCP / IP数据包不会通过VPN软件路由到公司网络。

Solution

The network interface used by the emulator is plugging into the TCP/IP stack at a point lower than that which the VPN application sees hence they are routed to the Internet. 仿真器使用的网络接口插入到TCP / IP堆栈的位置比VPN应用程序看到的位置低,因此它们被路由到Internet。 By using desktop pass through (WMDC in DMA mode and cradling the emulator in the device manager) the VPN application did see the packets and routed them to the corporate network as required. 通过使用桌面直通(DMA模式下的WMDC并在设备管理器中安装仿真器),VPN应用程序确实看到了数据包,并根据需要将其路由到公司网络。


The procedure to follow consists of the following steps: 遵循的过程包括以下步骤:

  1. Start the VPN Client on the Windows machine (the one on which the device emulator executes). 在Windows机器(执行设备模拟器的机器)上启动VPN客户端。
  2. Start Visual Studio and open the solution that uses the VPN. 启动Visual Studio并打开使用VPN的解决方案。
  3. Set the Target Device (in either Toolbar or Project Properties) to desired emulator. 目标设备 (在工具栏或项目属性中)设置为所需的仿真器。
  4. Click Tools->Connect to Device... 单击工具->连接到设备...
  5. In Connect to Device dialog, highlight the desired emulator in the Devices ListBox and click Connect . 在“连接到设备”对话框中,在“设备列表”框中突出显示所需的仿真器,然后单击“ 连接”
  6. Wait for the connection to succeed and click Close . 等待连接成功,然后单击“ 关闭”
  7. Click Tools->Device Emulator Manager... 单击工具->设备仿真器管理器...
  8. Maximize the Device Emulator Manager. 最大化设备仿真器管理器。
  9. Find the emulator you wish to use in the Datastore tree. 在数据存储树中找到要使用的仿真器。
  10. If it does not have a green arrow icon in front of its name, right-click on its name and click Connect from the right button context menu. 如果其名称前没有绿色箭头图标,请右键单击其名称,然后从右键按钮的上下文菜单中单击“ 连接 ”。
  11. When the emulator name is prefixed by a green arrow icon, right click on the name and choose Cradle from the right button context menu. 当仿真器名称带有绿色箭头图标作为前缀时,请右键单击该名称,然后从右键单击上下文菜单中选择“ 摇篮 ”。
  12. Minimize the Device Emulator Manager window. 最小化“设备仿真器管理器”窗口。
  13. The Windows Mobile Device Center window will open. Windows Mobile设备中心窗口将打开。 (Close any Windows Mobile Member Center windows that may appear.) (关闭可能出现的所有Windows Mobile Member Center窗口。)
  14. In the Mobile Device Center window, the Connected check mark should be present on the left side under the image of a device. 在“移动设备中心”窗口中,设备图像下方的左侧应显示已连接复选标记。
  15. Click on Connect without setting up your device . 单击“ 连接”,而不设置设备
  16. Hover over Mobile Device Settings. 将鼠标悬停在移动设备设置上。
  17. Click on Connection Settings link. 单击连接设置链接。
  18. The Connection Settings dialog box opens. 将打开“连接设置”对话框。 Insure that all four check boxes are checked; 确保选中所有四个复选框; that the first dropdown has DMA chosen; 第一个下拉菜单选择了DMA; and that the second dropdown has The Internet chosen. 并且第二个下拉菜单选择了Internet。 (If there is a proxy executing on the hosting machine, choose Work Network in the second dropdown.) (如果托管计算机上正在执行代理,请在第二个下拉列表中选择“工作网络”。)
  19. Click OK to dismiss the Connection Settings dialog box. 单击“ 确定”关闭“连接设置”对话框。
  20. Minimize the Windows Mobile Device Center window. 最小化Windows Mobile设备中心窗口。

Debug the application in the usual manner. 以通常的方式调试应用程序。 Hope this helps. 希望这可以帮助。

Gus 古斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 EndpointNotFoundException [在Windows Mobile 6.5.3 APP中] - EndpointNotFoundException [in Windows Mobile 6.5.3 APP] 在Windows Mobile 6.5.3中禁​​用或启用手机无线电 - Disable or Enable phone radio in windows mobile 6.5.3 无法启动Windows 10移动模拟器 - Cannot launch windows 10 mobile emulator 在运行时如何区分Windows Mobile 6.5.3和以前的版本? - How to differ between Windows Mobile 6.5.3 and previous versions during runtime? C#UWP-如何将Mobile Emulator连接到本地MySQL数据库? - C# UWP - How to connect Mobile Emulator to a local MySQL Database? Windows Mobile-.NET CF:如何通过PC连接到Internet? - Windows Mobile - .NET CF: How to connect to the internet via PC? 无法从 C# 客户端连接到 Bigtable Emulator - Cannot connect to Bigtable Emulator from C# client Windows Phone 7模拟器Internet - Windows Phone 7 Emulator Internet 使用32feet进行蓝牙配对不会产生与手动配对相同的结果(Windows Mobile 6.5.3) - Bluetooth pairing using 32feet is not producing the same result as manual pairing (windows Mobile 6.5.3) 尝试通过C#中的Zebra SDK从Windows Mobile仿真器连接到USB Zebra打印机 - Trying to connect to an USB Zebra printer from a Windows Mobile emulator via the Zebra SDK in C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM