none
Emulator and Device Issues RRS feed

  • Question

  • I am trying to get working with the latest PhoneGap Git from Purplecabbage that
     brings together Windows Phone 8 and PhoneGap 2.2rc.  I have downloaded the .zip and placed
     the CordovaStarter-2.2.0.zip file into my Visual Studio
     2012\Templates\ProjectTemplates directory.  I then created a new
     CordovaStarter-2.2.0(WP8) project in VS.NET 2012.  So far, so good!


    The next thing I need to do is run my new basic project in one of the
     emulators.  When I do this, the emulator appears with a pop-up that asks me
     "Do you want to configure the emulator to connect to the Internet?" and I
     click Yes.  Then I get an error message that pops up saying:


    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 '{guid}' bind failed: The
     requested resource is in use (0x800700AA).  The virtual switch cannot be
     bound to the WiFi adapter beacuse the network bridge is already in use. You
     can configure at most one virtual switch to be connected to a WiFi adapter.


    I tried using Hyper-V Manager to manually create an external switch, but
     could not get that to work, even though I followed several guides online
     that shows how it is to be done.  While using the Hyper-V Manager it looks
     like the external switch is created successfully, but still I get the same
     message in Visual Studio when trying to run the project on any of the
     emulators.


    Okay, so screw the emulators, right? I've got a brand new Lumia 920 here,
     so I did the developer unlock on it.  So far, so good.  But when I try to
     deploy to that device, I get this message:


    Installation of the application failed. Run time error has occurred. Fix
     the Capabilities in WMAppManifest.xml file.


    I went into the WMAppManifest.xml and tried checking all boxes. That didn't
     change anything.  I tried unchecking all boxes.  That didn't change
     anything.  I read about the Wallet and NFC capabilities and how you can't
     use those on a developer unlocked device, so I just unchecked those and
     that didn't change anything. I set the checkboxes back to the way they were
     in a new CordovaStarter project and that didn't change anything.
    I read about a capability
     detection tool but I can't seem to find that.


    Any and all help is greatly appreciated!


    • Edited by Certify Monday, November 26, 2012 12:11 AM
    Monday, November 26, 2012 12:08 AM

Answers

  • I found my answer quickly by comparing it to the WMAppManifest.xml file of another one of my apps.

    Note, this is a WP7.1 app which I was trying to run on a WP8 device. The older WP7.1 SDK had the camera capability as "ID_CAP_CAMERA" while the new WP8 devices uses the capability called "ID_CAP_ISV_CAMERA"

    I just had to update the capability in the XML file using the code view and the app ran fine on the device after that.

    Hope this helps someone!

    Paras Wadehra
    Twitter: @ParasWadehra

    Wednesday, December 12, 2012 9:04 AM

All replies

  • Hi,

    Just to make sure I am reading this right, did you completely extract all the files from the zip file, so that they are no longer resident in a compressed folder?

    -Mark


    Mark Chamberlain Sr. Escalation Engineer | Microsoft Developer Support | Windows Phone 7

    Monday, November 26, 2012 7:04 PM
  • I am having the same issue as well. I can put it on the emulator, but when I deploy to my HTC 8X it says the same thing. My application is a new application .xap file. I have also checked different boxes that apply to my application with no luck. I am hoping we find a solution to this!
    Friday, November 30, 2012 10:28 PM
  • I am working with a C# app for Windows Phone. It used to work fine both on my device and on the emulator, but today when I try and deploy to a device I get an error saying "Installation of the application failed. Run time error has occurred. Fix the Capabilities in WMAppManifest.xml file." However, the deployment to an emulator works just fine.

    Any pointers on how to fix this issue?

    --
    Paras Wadehra
    Twitter: @ParasWadehra

    Wednesday, December 12, 2012 8:41 AM
  • I found my answer quickly by comparing it to the WMAppManifest.xml file of another one of my apps.

    Note, this is a WP7.1 app which I was trying to run on a WP8 device. The older WP7.1 SDK had the camera capability as "ID_CAP_CAMERA" while the new WP8 devices uses the capability called "ID_CAP_ISV_CAMERA"

    I just had to update the capability in the XML file using the code view and the app ran fine on the device after that.

    Hope this helps someone!

    Paras Wadehra
    Twitter: @ParasWadehra

    Wednesday, December 12, 2012 9:04 AM
  • I had the same error, but it was caused by selecting the 720p resolution option on the Application UI page of WMAppManifest.xml. Turning 720p off and selecting the wxga option cleared the error.

    Tuesday, August 27, 2013 3:50 PM