Friday, December 5, 2008

Error 1920 Service faild to start WS 2003

Today i got a query from client that windows service for our product is not running it gave "Error 1920 service ... failed to start. verify that you have sufficient privileges to start system services" either the login user has the local Admin rights. I checked the Windows version it was Windows 2003 Sp2, i checked the event log and i found the event Id 7000, wow suspicious why it is not running under Admin control.
by googling i found it is a Microsoft documented bug that some times services wouldn't run even under Admin control. so following is the solution:

Just increase the timeout value in the registry, follow these steps:

1. Start Registry Editor (Regedit.exe).
2. To change the value data for the ServicesPipeTimeout DWORD value to 60000 in
the Control key, follow these steps:
1. Locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
2. Click the Control subkey
3. Right-click the ServicesPipeTimeout DWORD value, and then click Modify.
4. Click Decimal.
5. Type 60000, and then click OK.
3. If the ServicesPipeTimeout value is not available, add the new DWORD value,
and then set its value data to 60000 in the Control key. To do so, follow
these steps:
1. Locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
2. Click the Control subkey.
3. On the Edit menu, point to New, and then click DWORD Value.
4. Type ServicesPipeTimeout, and then press ENTER.
5. Right-click the ServicesPipeTimeout DWORD value, and then click Modify.
6. Click Decimal.
7. Type a value of 60000, and then click OK.

The value is 60000 milliseconds and is equivalent to 60 seconds or to one minute.
Note This change does not take effect until the computer is restarted.

Reference: http://support.microsoft.com/kb/839803

No comments: