简体   繁体   English

无法在VirtualBox上启动服务,系统错误1053

[英]Cannot start service on virtualbox, system error 1053

I create two service in application: 我在应用程序中创建了两个服务:

  1. FileSystemdriver, based on some.sys (sign driver) (1st) 基于some.sys的FileSystemdriver(符号驱动程序) (第1个)
  2. Win32OwnProccess, based on some.exe (2st) 基于some.exe的Win32OwnProccess (第2个)

I use native code from advapi32.dll for working with services (for example) 我使用advapi32.dll中的本机代码来处理服务(例如)

[DllImport("advapi32.dll", EntryPoint = "OpenSCManagerW", ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]
    static extern IntPtr OpenSCManager(string machineName, string databaseName, SCManagerAccess dwDesiredAccess);

App works on my machine with win10. 应用程序可以在我的计算机上使用win10运行。 But app**(2st)** cannot start on the VM virtualbox's with win10 from Microsoft (I didn't reconfigure it), giving to me system error 1053, by the way (1st) already started. 但是app **(2st)**无法在来自Microsoft的win10的VM虚拟机上启动(我没有重新配置它),通过(第1个)启动方式给我系统错误1053。

I try to add and increase by max value ServicesPipeTimeout in registry on VM, but it don't help to me. 我尝试在VM上的注册表中添加和增加最大值ServicesPipeTimeout ,但这对我没有帮助。 Then I try to create and start (2st) using sc.exe , but it don't help to me again. 然后,我尝试使用sc.exe创建并启动(第2个) ,但这对我没有帮助。 Then I try to create service Win32OwnProccess based on iexplore.exe and I again can't start this service. 然后,我尝试基于iexplore.exe创建服务Win32OwnProccess,但我再次无法启动该服务。 By the way some other standart(pre-installed) services I can start/stop. 顺便说一下,我可以启动/停止其他一些标准(预装)服务。

Someone can tell me why I cann't start service on vitrualbox VM? 有人可以告诉我为什么我不能在vitrualbox VM上启动服务?

I found my mistake. 我发现了我的错误。

For run my app was needed redistributable vs2013 (1) and vs2012 (2) , but I thought that for run was needed only (1) , which was installed on VM without (2) , that the was a mistake. 为了运行我的应用程序需要重新分发vs2013 (1)和vs2012 (2) ,但是我认为只需要运行(1)即可运行 ,而没有安装(2)的 VM上安装了该应用程序,那是一个错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM