2013-10-21 21 views
7

我在Windows 8.1 Pro上運行Visual Studio 2013。Windows Phone 8模擬器從Hyper-V運行,但我無法從Visual Studio中調試

我在調試Windows Phone 8應用程序時遇到問題。當我嘗試部署到虛擬電話(模擬器WVGA 512MB),我得到如下:

Do you want to configure the emulator to connect to the Internet? Your PC may lose its network connectivity while the changes are applied. This may affect any network operations in progress.

當我點擊是的,我得到以下錯誤:

The Windows Phone Emulator wasn't able to create the external network switches. Something happened while creating a switch: Failed while creating virtual Ethernet switch. Ethernet port '{CD7D5F8C-C0EE-439E-8E0E-D139BC5E5A18} bind failed: The requested resource is in use. (0x800700AA). The virtual switch cannot be bound to the WiFi adapter because the network bridge is already in use. You can configure at most one virtual switch to be connected to a WiFi adapter.'

後這我在Visual Studio中出現以下錯誤:

Error 1 App deployment failed. Please try again. Line: 0 Column: 0

如果我選擇否,它只是坐在屏幕上以下消息:

The Windows Phone OS is starting...

我可以直接從Hyper-V運行模擬器,而不是從Visual Studio運行。

我已經嘗試了Visual Studio的完整修復。有沒有人看到這個?我該如何解決這個問題?

感謝

+0

你已經有一個活躍的虛擬交換機連接到您的WiFi適配器?你正在使用不同的虛擬機可能嗎?如果是這樣,我相信如果您手動將該開關添加到Hyper V中的模擬器,它應該解決問題。 –

回答

2

我通常刪除模擬器VM並用它創建任何虛擬交換機,然後重新啓動電腦,在那之後我打開Visual Studio和我跑我的應用程序,從而使視覺工作室開始並創建虛擬機需要,那麼它工作正常

你並不總是需要重新啓動我只是爲了以防萬一,只刪除虛擬機可以幫助。再次通過visual studio運行你的應用程序。

+0

這爲我工作(刪除虛擬機+虛擬交換機),無需重新啓動電腦。 – Geert

2

打開Hyper-V去虛擬交換機經理,並再次刪除所有交換機

然後打開你的VS,並在模擬器中運行你的項目,按是當配置信息出現

,並等待...

如果不工作,然後去了Hyper-v,並連接到你的模擬器並運行項目再次

相關問題