"Unknown key-in" or "error 126" when attempting to open MicroStation V8i integrated version with a Bentley Civil product installed

  Product(s): WaterCAD, WaterGEMS, HAMMER, SewerGEMS, SewerCAD, StormCAD, CivilStorm, PondPack
  Version(s): CONNECT Edition, V8i
  Environment: MicroStation
  Area: Installation

Problem

When opening the MicroStation platform (such as the "StormCAD for MicroStation V8i" shortcut), the OpenFlows product menu is available (such as "StormCAD"), but the menu items do not work. Attempting to use a menu item results in "Unknown key-in or command" in the message center.

You may also see a black command line (DOS) window with an error similar to the following, when first opening a DGN file:

"OS could not load C:\Program Files (x86)\Bentley\WaterCAD\Idaho.Microstation.dll, error 126.

MDL Loader: Unable to load library <DLL or MDL shared library> Idaho.Microstation.dll"

Solution

First, confirm that the corresponding product is selected for the "user" and "project" in the MicroStation V8i file open dialog. If you're attempting to use a custom workspace, or you need to try reintegrating with MicroStation, see the below articles:

Loading Hydraulics and Hydrology products into a custom MicroStation workspace

Troubleshooting MicroStation integration

If the integration is set up properly and there are no issues with custom workspaces, this may be due to a conflict with a Bentley Civil product such as Inroads, GEOPAK, or MX. This can happen if the version of the OpenFlows product uses shared components that conflict with the components used by the civil product in that session. One example of this is WaterCAD, WaterGEMS or HAMMER V8i SELECTseries 6 (08.11.06.XX) with Inroads 08.11.07.428.

In this case, you can either upgrade the version to avoid this conflict (in the example above, you would upgrade to a 08.11.09.XX version of Inroads), or add a special command line switch to your "...for MicroStation" shortcut to disable the civil product from loading during your OpenFlows product MicroStation integrated session. The switch to add is:

-wsCIVIL_APPLICATION=1

To do this, locate the "...for MicroStation" shortcut (if you find this in your Start menu, you may need to right click on it and choose "open file location"), right click the shortcut, choose Properties, then change the "target" as follows (the below example uses WaterCAD but is similar for other OpenFlows products) and click Apply>OK.

"C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\ustation.exe" "-wuWaterCAD" "-wsCIVIL_APPLICATION=1"

See Also

Troubleshooting MicroStation integration

Recommended
Related