c# - Moving to forms in Windows Phone 8.1 throws "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" -


i created windows phone 8.1 application (c#), navigates me form map view displayed. problematic code being button click event:

        public void tooriginal_click(object sender, routedeventargs e)     {       this.frame.navigate(typeof(pages.mappage));       //pages folder pages put in. mappage open     } 

also using in place:

using windows.ui.xaml.navigation; 

the exception thrown:

additional information: access denied. (exception hresult: 0x80070005 (e_accessdenied)) 

i added location capability in package.appxmanifest. worked before @ point, did change something, caused now?

i searched around, didn't find similar. same codes, different reasons. seems general exception code thrown when denied. how solve navigation one?

if can link me answer or have info this, let me know.

even having problem
replace
this.frame.navigate(typeof(pages.mappage));
with

 await dispatcher.runasync(coredispatcherpriority.normal, () =>                frame.navigate(typeof(pages.mappage))); 

that should fix issue


Comments