簡體   English   中英

Win Mobile 6.5.3模擬器無法連接到Internet

[英]Win Mobile 6.5.3 Emulator cannot connect to Internet

環境:Windows Mobile 6.5.3 Professional 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

應一位同事的建議,我嘗試訪問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

我嘗試了“文件”->“配置”->“網絡”,並檢查了“啟用NE2000”。

在這一點上我迷路了。

任何幫助,將不勝感激。

TIA

古斯

經過大量浪費的研究之后,我們決定向Microsoft付費以回答此問題。

微軟表示

問題

當您在桌面上運行Windows Mobile 6.5仿真器時,仿真器發送的TCP / IP數據包不會通過VPN軟件路由到公司網絡。

仿真器使用的網絡接口插入到TCP / IP堆棧的位置比VPN應用程序看到的位置低,因此它們被路由到Internet。 通過使用桌面直通(DMA模式下的WMDC並在設備管理器中安裝仿真器),VPN應用程序確實看到了數據包,並根據需要將其路由到公司網絡。


遵循的過程包括以下步驟:

  1. 在Windows機器(執行設備模擬器的機器)上啟動VPN客戶端。
  2. 啟動Visual Studio並打開使用VPN的解決方案。
  3. 目標設備 (在工具欄或項目屬性中)設置為所需的仿真器。
  4. 單擊工具->連接到設備...
  5. 在“連接到設備”對話框中,在“設備列表”框中突出顯示所需的仿真器,然后單擊“ 連接”
  6. 等待連接成功,然后單擊“ 關閉”
  7. 單擊工具->設備仿真器管理器...
  8. 最大化設備仿真器管理器。
  9. 在數據存儲樹中找到要使用的仿真器。
  10. 如果其名稱前沒有綠色箭頭圖標,請右鍵單擊其名稱,然后從右鍵按鈕的上下文菜單中單擊“ 連接 ”。
  11. 當仿真器名稱帶有綠色箭頭圖標作為前綴時,請右鍵單擊該名稱,然后從右鍵單擊上下文菜單中選擇“ 搖籃 ”。
  12. 最小化“設備仿真器管理器”窗口。
  13. Windows Mobile設備中心窗口將打開。 (關閉可能出現的所有Windows Mobile Member Center窗口。)
  14. 在“移動設備中心”窗口中,設備圖像下方的左側應顯示已連接復選標記。
  15. 單擊“ 連接”,而不設置設備
  16. 將鼠標懸停在移動設備設置上。
  17. 單擊連接設置鏈接。
  18. 將打開“連接設置”對話框。 確保選中所有四個復選框; 第一個下拉菜單選擇了DMA; 並且第二個下拉菜單選擇了Internet。 (如果托管計算機上正在執行代理,請在第二個下拉列表中選擇“工作網絡”。)
  19. 單擊“ 確定”關閉“連接設置”對話框。
  20. 最小化Windows Mobile設備中心窗口。

以通常的方式調試應用程序。 希望這可以幫助。

古斯

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM