Search code examples
windowswindows-servicesinstallationrights

Service failed to start error 1920


On some machine we have the following error at service install: "Service ... failed to start. Verify that you have sufficient privileges to start system services."

Service is installed fine tho, just that it can't be started as Network Service from Services.msc. Service starts and runs good if started from console it's executable...

Same thing happens with another service started as Local System.

On other machines everything is fine. Service starts as network service with no problems.

We think is a problem with windows rights, like error says, but how to check? And what to do?

Thanks, Adrya


Solution

  • After more investigation we discovered that adding this in service configuration file fixed the problem:

    <runtime>
        <generatePublisherEvidence enabled="false"/>
    </runtime>
    

    http://msdn.microsoft.com/en-us/library/bb629393.aspx

    We recommend that services use the <generatePublisherEvidence> element to improve startup performance. Using this element can also help avoid delays that can cause a time-out and the cancellation of the service startup.