Summary
The DependOnService string prevents a service from starting until another necessary service is first started. This article presents information on either creating and editing this string, or removing this string.
If the Laserfiche Server is installed on the same computer as the Microsoft SQL Server, MSDE, or Oracle, the DependOnService registry string must be set to the correct dependency service in order to allow Laserfiche to start properly. In this case, the Laserfiche Server service may be starting before the MSDE (MSSQL$LASERFICHE), Microsoft SQL Server (MSSQLSERVER), or Oracle (OracleServiceORA) services. Edit the DependOnService registry string to prevent the Laserfiche Server from starting up before the MSSQL$LASERFICHE, MSSQLSERVER, or OracleServiceORA services. If you wish to add the dependency using the SC.exe command line utility, see Resolution 1. If you wish to manually add the dependency using the Windows Registry Editor tool, see Resolution 2.
If you ever decide to move your SQL Server to another computer or upgrade MSDE to Microsoft SQL Server and decide to place the SQL Server on a separate computer, the DependOnService key should be removed. If the string is not removed, it can prevent the Laserfiche Server service from starting. Since the MSSQLSERVER service does not exist on the same computer, the Laserfiche for Microsoft SQL Server service would be depending on a service that would never start. See Resolution 3 to remove the registry string to prevent this error.
Notice: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, visit the Microsoft Knowledge Base and search for Article ID: 256986.
SC.exe is a command line utility that can retrieve and set control information about services. The following instructions provide information on how this utility can be used to set the dependency for the Laserfiche Server service.
Note:The SC command line utility is only available on Windows XP and later.
To set the dependency for the Laserfiche Server (SC.exe)
cmd
sc config LFS71 Depend= MSSQL$LASERFICHE
sc config LFS71 Depend= MSSQLSERVER
sc config LFS71 Depend= OracleServiceORA
Note: Replace LFS71 with LFS70 if you are using Laserfiche Server 7.0.x.
The registry can be manually modified to adjust the dependency setting for the Laserfiche Server service. Use the following instructions to adjust this setting.
To manually set the dependency for the Laserfiche Server
regedt32.
Delete the DependOnService registry string to remove the Laserfiche Server service's dependency on the MSSQLSERVER service.
To remove the Laserfiche Server's dependency