New Microsoft. phone. userdata. contacts reports system when accessing contact data. exception information. In fact, this cause may be because your project is upgraded from a Windows Phone 7 project. You only need to go to properties \ wmappmanifest in the project file. add in XMLCode, Declare the required permissions:
<Capability name = "id_cap_contacts"/>
The following compatibility statement is also added to the windowsphone 7.1 SDK:
<Capability name = "id_cap_isv_camera"/>
<Capability name = "id_cap_appointments"/>
Of course, if you are already a Windows Phone 7.1 project and encounter the above exceptions, you can also check whether the above Compatibility Statement exists. Finally, if your project does not have the similar permission, we recommend that you remove the statement when the software is finally released.
Related:
- Microsoft. Phone. userdata namespace
- Microsoft. Phone. userdata. Contacts class
- Application manifest file for Windows Phone
Welcome to my independent blog: http://blog.tinytian.com/