c# - A first chance exception of type 'System.UnauthorizedAccessException' occurred in Microsoft.Phone.ni.dll -
i have windows phone 8 application running on emulator visual studio 2012 environment. implemented logic able send toast push notifications app. when comes code snippet below in mainpage constructor, receive exception outlined in subject line:
// try find channel pushchannel = httpnotificationchannel.find(channelname);
also, information below given out exception:
access push notifications requires id_cap_push_notification defined in manifest.
what wrong or missing receive such exception. please note running vs 2012 environment under administrator account full privileges.
thanks!
in solution explorer of visual studio
- expand "properties" node of project.
- open "wmappmanifest.xml" file "properties" panel.
- navigate "capabilities" tab
- check button "id_cap_push_notification" if not checked.
Comments
Post a Comment