|
|
When debugging the sample and clicking the request lock screen access button, the following exception is thrown: Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND)) at Windows.Applica tionModel.Backg round.Backgroun dExecutionManag er.RequestAcces sAsync() at LockScreenAppsC S.ScenarioInput 1.<RequestLockS creenAccess_Cli ck>d__0.MoveNex t() in c:\Users\who\Do wnloads\Lock screen apps sample\C#\Scena rioInput1.xaml. cs:line 33
While debugging i also found that the same exception is thrown so i found that this exception is only comes when i set the breakpoint before BackgroundExecutionManager.Req uestAccessAsync () , so when i set the breakpoint after this statement its working for me try this. BackgroundAcces sStatus backgroundAcces sStatus = await BackgroundExecu tionManager.Req uestAccessAsync ();
While the above problem was in GeoLocation Sample for LockScreen sample is working fine may be some issues with Beta release in Lock Screen sample so try to fix by the same idea for more information read this http://social.msdn.microsoft.c om/Forums/en-US /winappswithcsh arp/thread/fdd1 6344-fd66-4761- b226-3f356f241c 05?prof=require d