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...

5 Star
24,946 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • element not found AND app not being deployed
    2 Posts | Last post October 19, 2013
    • I am getting the same issue as Matt. However, unlike Utsav_Vishnoi and apparently everyone else replying to this thread: http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/fdd16344-fd66-4761-b226-3f356f241c05?prof=required, I get the error whether or not I have a breakpoint set (regardless of WHERE the breakpoint is). In fact, I first noticed it without having a breakpoint set at all. So this remains unresolved for me. (I downloaded the sample on 10/16/2013).
      I also noticed that unlike other windows store apps I've built, this app is not being deployed when I build it nor is it being deployed if I select "Deploy Solution" or "Deploy Selection" from the build menu. The output window claims that the deployment was successful:
      3>Creating a new clean layout...
      3>Copying files: Total <1 mb to layout...
      3>Registering the application to run from layout...
      3>Deployment complete. Full package name: "Microsoft.SDKSamples.LockScreenApps.CS_1.0.0.0_neutral__8wekyb3d8bbwe"
      ========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
      ========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
      However, the LockScreenApp does not show up on the start menu (as other apps that I build in VS2012 do). It also doesn't show up when I search for the app with the windows 8 search charm. The value, 'Microsoft.SDKSamples.LockScreenApps.CS_1.0.0.0_neutral__8wekyb3d8bbwe' does show up in my registry under HKEY_USERS\...\Software\Classes\ActivatableClasses\CLSID\{1E153C42-FA88-57DD-AC9E-4994D3CA10B3}\PackgageMoniker, but that's about it. I have no way to run the app other than from within Visual Studio.
      I assume the error that I am seeing has something to do with the app not being deployed. If anyone knows what's wrong and more importantly how to fix or work around it, I would be much obliged.
    • I'm not sure how, but the app got deployed. I was running a separate application and noticed that the lockscreen app was on my start screen (that was not the case before). I was able to run it and request lock screen access without a problem. Unfortunately, I do not know what happened, but all's well that end's well. :) Rich
  • 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