title: Creating and starting Windows Service with .exe which has package identity over sparse package (.msix) to create PushNotificationChannel
body: <p>I´m new to c#, .net core world and figuring out a POC for our needs.</p>
  <p>Basically its a Windows Service created with .net core (like here explained: <a href="https://docs.microsoft.com/en-us/dotnet/core/extensions/windows-service" rel="nofollow noreferrer">Create a Windows Service using BackgroundService</a>). Our goal is to send push notification (raw push notification, trigger some tasks in behind) to our Windows Service and as i understood it there is no way to do it for a non-packaged application (without package identity) like our Windows Service project. Since this is a simple console application.</p>
  <p>So i found that we can grant package identity which is precondtion for creating push notification channel, by this Doc: <a href="https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/grant-identity-to-nonpackaged-apps#add-the-package-identity-metadata-to-your-desktop-application-manifest" rel="nofollow noreferrer">Grant identity to non-packaged desktop apps</a></p>
  <p>But here is the problem, when i add package identity to our project/.exe, more precisely adding the application.manifest with the <code>msix</code> node to the Windows Service it is not more possible to start the Windows Service. Everything is fine, i can execute the .exe and it also return me the Channel URI, but if i create a Windows Service of it and try to start it, i get the following error: &quot;5: Access denied&quot;.
  Removing the <code>msix</code> node from the application.manifest from the project, building it new, it is possible to create and start the Windows Service. But without package identity i cant get the channel Uri.</p>
  <p>Yes, we do need a Windows Service because this fits our other ideas.</p>
  <p>It is even possible the send push notifications over WNS to a Windows Service?
  If so, did i went the right way and missed something or is there another way to do it?</p>