Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenFlows | Hydraulics and Hydrology
  • Product Communities
  • More
OpenFlows | Hydraulics and Hydrology
OpenFlows | Hydraulics and Hydrology Wiki Error "System.TypeInitializationException"
    • Sign in
    • OpenFlows | Hydraulics and Hydrology Wiki
    • +OpenFlows CivilStorm
    • +OpenFlows CulvertMaster
    • +OpenFlows FLOOD
    • +OpenFlows FlowMaster
    • +OpenFlows HAMMER
    • +OpenFlows PondPack
    • +OpenFlows SewerCAD
    • +OpenFlows SewerGEMS
    • +OpenFlows StormCAD
    • +OpenFlows WaterCAD
    • +OpenFlows WaterGEMS
    • +OpenFlows WaterSight
    • +OpenFlows WaterOPS
    • +OpenFlows SewerOPS
    • +Bentley HEC-PACK
    • +General
    • +Help and Documentation
    • +Installation
    • +Licensing / Activation
    • +Integration
    • +Modeling
    • +Layout and Data Input
    • +Calculations
    • +Output and Reporting
    • +Other
    • +OpenFlows Product TechNotes And FAQs
    • Check boxes do not appear in tables such as Control Sets dialog
    • Consuming ContextCapture production files within your hydraulic model
    • Convergence NOT achieved Message when computing StormCAD or SewerCAD model
    • Converting Junctions or Hydrants to Isolation Valves
    • Displaying Shapefile Labels (Text) As a Background
    • Enhancing OpenFlows multi-user workflows with ProjectWise Share
    • Error "System.TypeInitializationException"
    • Error 32768 when opening model while integrated with ProjectWise
    • Error installing patch set: "Cannot create output file: ..."
    • Error when opening PondPack: "Object reference not set to an instance of an object" or "Application has generated an exception that could not be handled."
    • Error when saving or validating: System.AccessViolationException: Attempted to read or write protected memory.
    • File Open Dialog does not appear
    • Flextable Report of Multiple Element Types
    • Get to know OpenFlows CONNECT Edition
    • Get to know WaterGEMS, WaterCAD and HAMMER CONNECT Edition
    • How do I import/export multiple point pump curve pump definitions into a model using ModelBuilder?
    • How do you save backup files, so they save at different times and multiple levels?
    • How does the intermediate geodatabase (.MDB or .GDB) file function with ArcMap and ArcGIS Pro integration?
    • How to Delete Engineering Libraries if you get a message about a Read-only database
    • How to Find Total Pipe Water Volume
    • How to receive alerts on new version availability?
    • How to register DAO360.dll or a dll file?
    • How to search using wild cards on a sqlite type of database
    • How to See Hebrew or Arabic text in a .DXF file that was exported from WaterGEMS/WaterCAD
    • Hydraulic grade discontinuity at steep pipes or across nodes (frontwater analysis)
    • I get a red user notification that says, "Inlet guttter mannings n should be greater than 0".
    • Importing .HLB library files from old product versions into format used in the V8 product versions
    • Importing External Data in Geographic Coordinate Systems
    • Importing storm data and other library information from older versions
    • Changing element symbols in the AutoCAD platform
    • Interchange
    • Locating OpenFlows product error log file
    • Locating OpenFlows Product Version Number and License Information
    • Model backward / forward compatibility
    • Model can be opened and used by multiple users
    • Modeling a closed loop system
    • Modeling a flow split (diversion) with the SewerCAD or StormCAD numerical solver
    • Modeling turbine load acceptance plus load rejection
    • Multiple CN numbers for a catchment and multiple catchments with a single outlet node
    • Network Navigator Trace Upstream/Downstream does not return any elements
    • OpenFlows software numerical solver theory
    • Percent Connected Impervious Areas and Percent Unconnected Impervious Areas
    • Performing a hydrosanitary design in WaterGEMS or WaterCAD
    • PondPack user notification: "The composite outlet structure is either not selected or deleted."
    • PondPack: How to perform a critical duration analysis?
    • Pressure pipe vs. conduit between pump and wetwell
    • Print Preview > Fit to Page shows blank page
    • Properties not working when using MicroStation integration with ProjectWise
    • Properties, Flextables, user notifications, or other dialog is missing or will not open in standalone
    • Properties, user notifications, or other tool managers not showing up in Integrated version of AutoCAD
    • Reusing Pump Definitions (Import / Export)
    • Reversing orientation of Pipes and Conduits in Bulk
    • Saving a hydraulic model when using the AutoCAD platform (i.e. integrated)
    • Important License Update for OpenFlows Users
    • Setting the invert elevation for multiple conduits coming into one manhole
    • Simple Controls vs. Logical Controls
    • Sorting and relabeling a flextable based on upstream-downstream order
    • Source of the default Specific Speed for pumps and turbines
    • Step by step procedure for finding the curb length needed to capture 100% of gutter flow in a curb inlet with a continuously depressed gutter with no clogging
    • System.Reflection.TargetInvocationException crash when trying to open the application
    • Test Wiki Page - A1
    • Text, cells/blocks and line styles do not display correctly in a DXF background layer
    • The flow annotation (label) in my WaterGEMS for ArcMap isn't reflecting the value displayed in my Geotable or Flextable
    • The total area in the CN/Area Collection does not equal the total catchment area
    • Time tolerance setting in SCADAConnect Simulator
    • Troubleshooting ArcMap / ArcGIS Integration
    • Understanding Flow (Additional Subsurface) and Flow (Additional Carryover)
    • Upcoming training and release dates for OpenFlows products
    • User notification "Downstream TW out of range..."
    • User notification "Pump exceeds the maximum operating point specified for the pump curve"
    • User Notification - The captured surface flow at this node does not connect a valid subsurface network. The flow is lost from the system.
    • User Notification: "There is an error in the data for this pipe. The associated data is incorrect"
    • User Notification: Cross section maximum elevation is above the maximum headwater elevation
    • User Notifications: "Pump On elevation is not in the range of upstream ...." and "Off elevation of pump is lower than ..."
    • Using batch pipe split to fix nodes that overlay a pipe instead of connecting to it
    • Using PondMaker with different tailwater for each return event
    • Valve "Status (Initial)" Definitions
    • Velocity Calculations and the Average Velocity Methods in SewerCAD and StormCAD
    • Viewing graph data for multiple scenarios
    • Water age results in a pipe are different from the age in the downstream junction
    • Water Loss Management
    • Water quality Analysis during transient events
    • WaterGems Tips
    • What are the limitations of importing/exporting EPANET files?
    • What is the dotted line that is associated with the isolation valves? Can I turn them off?
    • What's new in WaterCAD, WaterGEMS and HAMMER V8i SELECTseries 6 with CONNECT Integration?
    • What's New in WaterOPS CONNECT Edition 2.3 (Build 10.02.03.06)
    • When the user changes the fluid, why doesn't the calculated pump head change?
    • Working From Home With Your OpenFlows Software
    • Error Saving: "Custom results path is invalid"
    • Manage Pump Speed Series
    • Manage Pump Time Series
    • Missing Young's Modulus and Poisson's Ratio values in the material library
    • Pump Overview Dashboard
    • SCADAConnect in SewerGEMS
    • Translated version still showing as English
    • User notification when computing: IDF data is not supported by SWMM. Storm event is excluded from export.

    You are currently reviewing an older revision of this page.

    • History View current version

    Error when opening: "System.TypeInitializationException"

      Applies To 
      Product(s): SewerGEMS, SewerCAD, StormCAD, CivilStorm, WaterGEMS, WaterCAD, HAMMER, PondPack, FlowMaster
      Version(s): 08.11.03.83 and 08.11.03.77 (for Storm and Sewer products); build 08.11.03.19, 08.11.03.17, and 08.11.03.16 (for Water products)
      Area:  Installation
      Original Author: Scott Kampa, Bentley Technical Support Group

    Error Messages

    "System.TypeInitializationException"


    When opening the program:

    System.TypeInitializationException: The type initializer for 'Haestad.Domain.LibraryObjects.EngineeringLibraryService' threw an exception. 

    Haestad.Domain.DaoInterop.DAOException (0x80040154): COMerror not documented
       at Haestad.Domain.DaoInterop.InteropLibrary.ThrowCOMException(_com_error* e)
       at Haestad.Domain.DaoInterop.DaoDatabase.CreateDatabase(String fileName, CultureInfo locale)
       at Haestad.Domain.LibraryObjects.JetAppSettings.OpenRegistryDatabase(String fileName)
       at Haestad.Domain.LibraryObjects.JetAppSettings..ctor(String filename)
       at Haestad.Domain.LibraryObjects.EngineeringLibraryService.OpenImpl()
       at Haestad.Domain.LibraryObjects.EngineeringLibraryService..cctor()

    When opening a file:

    System.TypeInitializationException: The type initializer for 'Haestad.Domain.LibraryObjects.EngineeringLibraryService' threw an exception.

       at Haestad.Domain.LibraryObjects.EngineeringLibraryService.set_ProjectWiseManager(ProjectWiseManager value)
       at Haestad.Framework.Application.ProjectManagerBase.get_ProjectWiseManager()
       at Haestad.Framework.Application.ProjectManagerBase.get_IsProjectWiseAvailable()
       at Haestad.Framework.Application.HaestadParentFormModel.get_IsProjectWiseAvailable()
       at Haestad.Drawing.Control.Application.GraphicalParentFormUIModelBase.Initialize()
       at Haestad.Drawing.Control.Forms.GraphicalDrawingParentForm.DoLazyInitialization(Boolean lazyInitialize)
       at Haestad.Drawing.Control.Forms.GraphicalDrawingParentForm.FileNew()
       at Haestad.Montana.Forms.MontanaXMParentForm.FileNew()
       at Haestad.Framework.Windows.Forms.Forms.WelcomeForm.buttonCreateNewProject_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

    How to Avoid

    Option 1: Register the DAO File

    The error could be occurring because of unregistered DAO. See this article for steps to register the DAO360.dll file.

    Option 2: Upgrade to the latest version of the program

    You can find the steps to upgrade to the latest version here.

    Option 3: Delete Engineering Libraries 

    Delete the engineering libraries

    See Also

    How do I download the Water and Storm-Sewer hydraulics and hydrology products?

    How to register DAO360.dll or a dll file

    How to Delete Engineering Libraries

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies