Derek Lakin

Don’t Forget Your Windows Phone 7 Capabilities

If you’re developing a Windows Phone 7 application and you’re being a responsible developer and cleaning up the capabilities section of your WMAppManifest.xml file[1] and then get unexpected errors when you extend your application further (such as adding the WebBrowser control), don’t forget to rescan your capabilities to ensure they are up to date.

I just did exactly that; I added the WebBrowser control to a WP7 project and got an exception that gave the error code 80010108. I had removed the IDCAPWEBBROWSERCOMPONENT capability from the WMAppManifest.xml file.

Just thought I’d make a public not to myself and hope it saves someone else some searching.

[1] For more information about the Windows Phone Capability Detection Tool and how to run it easily from within Visual Studio, check out my earlier blog post.