Setting Service Dependency for the Laserfiche Server.

June 3, 2005 | KB: 1000751
Server (MSDE) 7, Server (MSSQL) 7, Server (Oracle) 7

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.

Resolution 1

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)

  1. Click Start and then click Run.
  2. In the Run dialog box, type the following and click OK to load a command prompt window.

    cmd

  3. Perform one of the following options:
    • If you are using MSDE, type the following:

      sc config LFS71 Depend= MSSQL$LASERFICHE

    • If you are using the full version of Microsoft SQL Server, type the following:

      sc config LFS71 Depend= MSSQLSERVER

    • If you are using Oracle, then type the following:

      sc config LFS71 Depend= OracleServiceORA

    Note: Replace LFS71 with LFS70 if you are using Laserfiche Server 7.0.x.

  4. Restart the computer to restart the Laserfiche Server service with the new dependency setting.

Resolution 2

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

  1. Click Start and then click Run.
  2. In the Run dialog box, type the following and click OK to load the Windows Registry Editor tool:

    regedt32.

  3. Locate the LFS7x registry key.
    1. Expand My Computer.
    2. Expand HKEY_LOCAL_MACHINE.
    3. Expand SYSTEM.
    4. Expand CurrentControlSet.
    5. Expand Services.
    6. Select LFS7x.
  4. On the right-hand side of the registry, make sure there is a string called DependOnService.
  5. If the string does not exist, add the string by doing the following:
    1. From the Edit menu, point to New and then select Multi-String Value.
    2. Name the string DependOnService
  6. To set the string value, click the string and from the Edit menu, select Modify.
  7. Perform one of the following:
    • Set the string to MSSQL$LASERFICHE if the installation is running on MSDE.
    • Set the string to MSSQLSERVER if the installation is running on the full version of Microsoft SQL Server.
    • Set the string to OracleServiceORA if the installation is running Oracle.
  8. Restart the computer to restart the Laserfiche Server service with the new dependency setting.

Resolution 3

Delete the DependOnService registry string to remove the Laserfiche Server service's dependency on the MSSQLSERVER service.

To remove the Laserfiche Server's dependency

  1. Follow steps 1 - 4 from the previous resolution.
  2. Click the DependOnService string.
  3. From the Edit menu, select Delete.
  4. Click Yes when prompted for confirmation.
  5. Restart the computer to restart the Laserfiche Server service without the dependency setting.