WP7.1 app will not deploy to WP8 device

I have a wp7.1 app that I am compiling in vs 2012. I can deploy the Wp7 and Wp8 emulators, but I cannot deploy it on my HTC 8x (WP8 device). I can also deploy the app to an old 7.1 device.

I can deploy an empty project to a Wp8 device.

The error I am getting:

Application installation failed. A runtime error has occurred. Correct the capabilities in the WMAppManifest.xml file.

Features have not changed since compilation in Vs2010.

Any ideas what this might be?

+3


source to share


3 answers


You can try to just enable all features and see if that fixes that. If so, you can start disabling the ones you don't need.



+2


source


It looks like someone from HTC threw the ball back while deploying WP7.1 apps to HTC 8X. This script works great on Lumia phones.

In any case, probably because some of the WP7.5 features were deprecated in favor of the new WP8 features. Specifically, ID_CAP_MEDIALIB has been deprecated in the ID_CAP_MEDIALIB_AUDIO, ID_CAP_MEDIALIB_PHOTO, ID_CAP_MEDIALIB_VIDEO and ID_CAP_MEDIALIB_PLAYBACK files. Removing this feature and replacing it with new ones may fix your problem. When



See full list of WP8 caps @ http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206936(v=vs.105).aspx

+2


source


I had a similar problem due to the <Capability Name="ID_CAP_NETWORKING_ADMIN" />

presence and absence of

<ScreenResolution Name="ID_RESOLUTION_WXGA"/>

      

If you follow these steps, it should solve all problems:

1) remove any feature that is not listed for your target wp at http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206936%28v=vs.105%29.aspx

2) add the default values. Take note of the ID_CAP_MEDIALIB that has changed and this requires more detail on what you need. For example, in my project I have:

<Capability Name="ID_CAP_NETWORKING" />
  <Capability Name="ID_CAP_LOCATION" />
  <Capability Name="ID_CAP_SENSORS" />
  <Capability Name="ID_CAP_MICROPHONE" />
  <Capability Name="ID_CAP_MEDIALIB_PLAYBACK" />
  <Capability Name="ID_CAP_GAMERSERVICES" />
  <Capability Name="ID_CAP_PHONEDIALER" />
  <Capability Name="ID_CAP_PUSH_NOTIFICATION" />
  <Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />


  <Capability Name="ID_CAP_IDENTITY_DEVICE"/>
  <Capability Name="ID_CAP_IDENTITY_USER"/>

  <Capability Name="ID_CAP_ISV_CAMERA"/>
  <Capability Name="ID_CAP_CONTACTS"/>
  <Capability Name="ID_CAP_APPOINTMENTS"/>

      

3) make sure you have the correct permission, http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769509%28v=vs.105%29.aspx#BKMK_SCREENRESOLUTIONSelement

<ScreenResolutions>
  <ScreenResolution Name="ID_RESOLUTION_WVGA"/>
  <ScreenResolution Name="ID_RESOLUTION_WXGA"/>
  <ScreenResolution Name="ID_RESOLUTION_HD720P"/>
</ScreenResolutions>

      

+2


source







All Articles