Skip to content

Marketplace Test Kit – Application Capabilities

October 19, 2011

I thought I would share this gotcha to save you some headache and potentially another round of Marketplace testing.

I recently submitted an application to the Windows Phone Marketplace for testing and to my complete surprise it came back reporting a failure.

In fact it was a very serious failure relating to the application terminating with an unhandled exception when viewing a page with the Web Browser control.  I had tested the application thoroughly on multiple devices and the emulator to which I could not replicate the error sent from the Marketplace Test team.

After some investigation using the Marketplace Test Kit I noticed something rather strange where the reported capabilities for the phone were wrong. Even though I was using the Web Browser control within one of my application pages it was reporting that the following capability was not required:

image

With a little help from @paulfo and the guys at Microsoft they informed me that the Capability Tool only parses the assemblies and not XAML to establish the application capabilities.  So this meant if my Web Browser control was not declared in the generated code behind it would not be picked up by the capabilities tool.

So to simply fix this issue I needed to add the x:Name attribute as follows:

Incorrect:

image

Correct:

image

Now the toolkit reports the application requires the ID_CAP_WEBBROWSERCOMPONENT.


Note:
The reason I don’t need to give the web browser control a name within my XAML is because I am using the MVVM pattern where my code is not within the code behind of the XAML.

Advertisement

From → Windows Phone 7

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.