An "Error 261" Error Occurs When Registering a Repository.

July 15, 2005 | KB: 1000787
Server (MSDE) 7.0.1

Summary

When you register a repository, you may receive the following error message:

    The Laserfiche Server encountered an error when trying to attach the repository.

    Error 261

Cause

Registering a Laserfiche repository involves first attaching the appropriate SQL database to a MSDE instance and then creating the appropriate registry values. This error can occur on Laserfiche 7.0.1 installations when you register a repository to a MSDE instance and the SQL attachment process is unsuccessful.

Resolution

To resolve this issue, please upgrade Laserfiche to version 7.0.2.

Workaround

Attach the appropriate MSDE database(s) using OSQL and register the Laserfiche repository by creating an appropriate registry key under HKEY_LOCAL_MACHINE\SOFTWARE\LASERFICHE\Engine\7.0\Databases.

Warning: Incorrectly editing the registry may adversely affect your system. Before you edit the registry, make sure you understand how to restore it if a problem occurs.

To attach a MSDE database

  1. Click here to download the AttachDb.vbs script file.
  2. Double-click AttachDb.vbs to run the script.
    1. In the first dialog box, type ServerName\LaserFiche. The term ServerName represents the name of the computer where the SQL server resides. Click OK.
    2. In the second dialog box, type in the name of the SQL database that you would like to attach.
    3. Type in the full path and filename for the specified database. Click OK.
  3. Rerun the script for any expansion databases.

To create the repository configuration registry keys

  1. Click here to download the "repository registry key.vbs" script file.
  2. Double-click "repository registry key.vbs" to run the script.
    1. In the first dialog box, type the name of your Laserfiche repository and click OK.
    2. Type the name of your SQL Server and click OK.
    3. Type the name of your SQL database and click OK.
    4. Type the path to your Laserfiche repository and click OK.