Lock screen apps sample

This sample shows how an app can have a presence on the lock screen—the screen that is shown when the computer is locked—with a badge to provide basic status information or a tile to provide more detailed status. An app can also send toast notificati...

 
 
 
 
 
(3)
13,080 times
Add To Favorites
4/9/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to Ask a Question


  • element not found in c# sample
    3 Posts | Last Post September 12, 2012
    • 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.ApplicationModel.Background.BackgroundExecutionManager.RequestAccessAsync()
         at LockScreenAppsCS.ScenarioInput1.<RequestLockScreenAccess_Click>d__0.MoveNext() in c:\Users\who\Downloads\Lock screen apps sample\C#\ScenarioInput1.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.RequestAccessAsync() , so when i set the breakpoint  after  this statement its working for me try this.
      BackgroundAccessStatus backgroundAccessStatus = await BackgroundExecutionManager.RequestAccessAsync();
      
    • 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.com/Forums/en-US/winappswithcsharp/thread/fdd16344-fd66-4761-b226-3f356f241c05?prof=required