How to Delete Engineering Libraries if you get a message about a Read-only database

  Product(s): WaterGEMS, WaterCAD, HAMMER, SewerGEMS, SewerCAD, StormCAD, CivilStorm, FlowMaster, PondPack, CulvertMaster
  Version(s): Varies

If you receive an error about an "attempt to write a readonly database" when opening an OpenFlows model, it might be related to the Engineering Libraries file.

Deleting this file may resolve the issue.  Here's how-

How to Delete Engineering Libraries

If you receive an error, while using a Bentley Hydraulics and Hydrology product, that references engineering libraries then the following steps will allow you to revert back to the original.

**Before performing the steps below please make sure to close the application**

Steps

1. Navigate to this location:

Windows XP: C:\Documents and Settings\<user name>\Application Data\Bentley\EngineeringLibraries\
Windows 7 and later: C:\Users\<user name>\AppData\Local\Bentley\EngineeringLibraries\

2. Delete the EngineeringLibraries.mdb (EngineeringLibraries.sqlite for newer versions) and any .bak or backup files for this database file.

If you don't see the files or folders listed above, make sure they aren't hidden.  In some instances, the …\AppData folder has a Read-only setting which will cause you to get an error that you are trying to open a Read-only database.  Setting permissions on the AppData folder to Everyone Full Control will clear this error.

Here are the steps to do this in Windows 7:

    1. Open Windows Explorer
    2. Open the Tools menu (or press ALT to display the menus if they aren't displayed)
    3. Select Folder Options
    4. Select the View tab
    5. Select "Show hidden files, folders, and drives"
    6. Uncheck "Hide extensions for known file types"
    7. Uncheck "Hide protected operating system files (Recommended)

3. Open the program

If the error is still generated, contact Bentley Technical Support and they can provide a clean copy of the engineering libraries file.

See Also

Error when opening: "System.TypeInitializationException"

  Original Author: Craig Calvin
Recommended
Related