title: UWP release build crashes but not in Visual Studio
body: <p>The app Works perfectly fine when I deploy it from VS 2015 (Windows 10)
  But the story is very different when I create the build from "Store > Create App Packages...", then install the app from the app from the powershell script.</p>
  
  <p>I have isolated the problem to a section where I set an image for the lock screen. Whenever I click yes on the message dialog to change the lock screen I get a crash, I have attached the debugger and I only get the following exception:</p>
  
  <pre><code>Exception thrown at 0x00007FFA61091F08 (KernelBase.dll) in 
  ApplicationFrameHost.exe: 0x80010012: 
  The callee (server [not server application]) is not available 
  and disappeared; all connections are invalid. The call did not execute.
  </code></pre>
  
  <p>The code to reproduce the error is based on the following article:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/windows.system.userprofile.userprofilepersonalizationsettings.trysetlockscreenimageasync" rel="nofollow">https://msdn.microsoft.com/en-us/windows.system.userprofile.userprofilepersonalizationsettings.trysetlockscreenimageasync</a></p>
  
  <pre><code>    public async Task&lt;bool&gt; ChangeLockScreenBackground()
      {
          bool success = false;
          if (UserProfilePersonalizationSettings.IsSupported())
          {
              var uri = new Uri("ms-appx:///Assets/SplashScreen.scale-400.png");
              StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(uri);
              UserProfilePersonalizationSettings profileSettings = UserProfilePersonalizationSettings.Current;
              success = await profileSettings.TrySetLockScreenImageAsync(file);
          }
          return success;
  
  
      }
  </code></pre>
  
  <p>I have no idea what is going on, I thought it was the capabilities of the app. 
  But I have enabled User Account Information and Pictures Library and still no luck :(</p>