I tried to create a custom contact store in WP8. My code (from msdn):
async public void AddContact(string remoteId, string givenName, string familyName, string email, string codeName) { ContactStore store = await ContactStore.CreateOrOpenAsync(); } private void Button_Click_1(object sender, RoutedEventArgs e) { AddContact("0", "Sample", "Sample", " sample@tut.by ", "32"); }
When a button is clicked, a System.UnauthorizedAccessException appears: access is denied ..
I do not understand what's going on?
source share