首页 新闻 会员 周边 捐助

topshelf linux 部署

0
悬赏园豆:10 [已关闭问题] 关闭于 2019-12-02 11:05

部署在linux服务器报错:
Topshelf v4.1.0.172, .NET Framework v4.0.30319.42000
Topshelf.Runtime.Windows.WindowsHostEnvironment Error: 0 : Unable to get parent process (ignored), System.DllNotFoundException: Unable to load DLL 'kernel32.dll': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at Topshelf.Runtime.Windows.Kernel32.CreateToolhelp32Snapshot(UInt32 dwFlags, UInt32 th32ProcessID)
at Topshelf.Runtime.Windows.WindowsHostEnvironment.GetParent(Process child)
Topshelf.HostFactory Error: 0 : The service terminated abnormally, System.PlatformNotSupportedException: ServiceController enables manipulating and accessing Windows services and it is not applicable for other operating systems.
at System.ServiceProcess.ServiceController.GetServices()
at Topshelf.Runtime.Windows.WindowsHostEnvironment.IsServiceListed(String serviceName)
at Topshelf.Hosts.ConsoleRunHost.Run()
at Topshelf.HostFactory.Run(Action`1 configureCallback)

程序员胡大圣的主页 程序员胡大圣 | 初学一级 | 园豆:7
提问于:2019-11-28 15:44
< >
分享
所有回答(1)
0

解决了嘛?大兄弟

报我以崎岖 | 园豆:202 (菜鸟二级) | 2021-10-27 09:57

用worker service吧

支持(0) 反对(0) 程序员胡大圣 | 园豆:7 (初学一级) | 2021-10-27 10:32
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册