Application : PhotoInsightService.exe
Version du Framework : v4.0.30319
Description : le processus a été arrêté en raison d'une exception non gérée.
Informations sur l'exception : System.UnauthorizedAccessException
à System.IO.__Error.WinIOError(Int32, System.String)
à System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
à System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions, System.String, Boolean)
à System.IO.FileStream..ctor(System.String, System.IO.FileMode)
à System.Configuration.Install.AssemblyInstaller.Install(System.Collections.IDictionary)
à System.Configuration.Install.Installer.Install(System.Collections.IDictionary)
à System.Configuration.Install.TransactedInstaller.Install(System.Collections.IDictionary)
Informations sur l'exception : System.InvalidOperationException
à System.Configuration.Install.ManagedInstallerClass.InstallHelper(System.String[])
à PhotoInsightService.Program.Main(System.String[])
Windows Store app cannot install Windows service ?
Hi,
I'd like to publish my application (.NetFramework/WPF) on Windows Store.
I could build an appinstaller package that installs perfectly.
At first startup my application installs a Windows service which seems to fail.
Is there some limitation due to the fact it has been installed as "Windows Store" app even though it's not an UWP application ?
3 answers
Sort by: Most helpful
-
Julien Amsellem 1 Reputation point
2020-11-16T12:52:06.483+00:00 -
DaisyTian-1203 11,621 Reputation points
2020-11-17T03:09:37.647+00:00 WPF apps packaged with VS are also belonged Desktop Bridge app. Form the error message, your WPF project target framework 4.0 , you need to change your application target .NET Framework 4.6.2 or later. All the WPF apps which want to be published in Windows Store are needed to converted to Desktop Bridge app. Not all WPF can be converted to Desktop bridge app, you need to make it to meet the following criteria: Prepare to package a desktop application. If I misunderstand your question,please point out.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. -
Julien Amsellem 1 Reputation point
2020-11-17T08:05:00.263+00:00 Actually my application targets .Net Framework 4.8 the value v4.0.30319 that you can see in the log only tells its v4 branch (to my understanding).
Reading the requirements made me clear about what's wrong with my application:- I need elevated privilege at one point and it's not allowed for Windows Store apps
- I try to install a Windows Service which is not allowed for Windows Store apps (I should investigate out of process Background Task
You can close this issue.