1

环境:Windows Mobile 6.5.3 Professional VGA Emulator

在工具->设备仿真器管理器中,我连接到仿真器并放置设备(左侧的图标从绿色箭头变为网络连接)。

我正在尝试通过代理访问 Web 服务。在Windows 7 Professional 桌面Windows Application 环境下,可以访问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

在同事的建议下,我尝试访问 www.google.com。结果是

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

当我点击设置时,我得到

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

我尝试了 File->Configure->Network 并检查了 Enable NE2000.... 重置(软)后没有任何改变。

在这一点上,我迷路了。

任何帮助,将不胜感激。

TIA

格斯

4

1 回答 1

7

经过大量无用的研究后,我们决定付钱给微软来回答这个问题。

微软表示

问题

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

解决方案

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


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

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

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

格斯

于 2012-04-19T19:03:31.180 回答