Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
LARS | LEAP | OpenBridge | OpenTunnel | RM
  • Product Communities
LARS | LEAP | OpenBridge | OpenTunnel | RM
LARS | LEAP | OpenBridge | OpenTunnel | RM Wiki Getting .NET Framework error when launching OBM from Project Wise
    • Sign In
    • LARS | LEAP | OpenBridge | OpenTunnel | RM
    • OpenBridge and OpenTunnel Learning
    • OpenBridge Designer: Onboarding Guide
    • How to Download OpenBridge Modeler or OpenBridge Designer?
    • +Bridge Products: Operating System and Hardware Requirements
    • OpenBridge Modeler and OpenRoads Designer Compatibility
    • -OpenBridge Modeler CONNECT Edition
      • +OBM Release Notes
      • +OBM CONNECT Edition Installation
      • -Workspace
        • Getting .NET Framework error when launching OBM from Project Wise
        • How to copy Feature Definition from one DGNLIB to another in Explorer in OpenBridge Modeler?
        • How to Disable ProjectWise login screen when opening OBM?
        • How to specify Auto Dimension Levels for Drawings > Dynamic View Settings?
        • OBM crashing when accessing Design File Settings dialog when using NCDOT 10.09 workspace
        • ProjectWise Managed Workspace for OpenBridge forces Copy Out of files in active folder
      • +Workflows
      • +Modeling
      • +OpenBridge Modeler CONNECT Edition FAQ
      • +Reports and Drawings
      • +OpenBridge Modeler V8i - Main Page
      • Bentley Accredited Bridge Modeler: Basic Bridge Modeling with OpenBridge Modeler – Program Overview
      • How do I download the latest release of Open Bridge Modeler connect edition?
      • How do I transfer data from LEAP Bridge Concrete to Open Bridge Modeler
      • Issue Notification: Seed File Setting and Stationing Issue in OBM (Nov.2.2021)
    • +OpenBridge Designer CONNECT Edition
    • +LEAP Bridge Concrete - CONSPAN, CONBOX, RC-PIER, CONSPLICE, and GEOMATH inside OpenBridge Designer CONNECT Edition
    • +LEAP Bridge Steel - OpenBridge Designer
    • +RM Bridge - OpenBridge Designer
    • +LARSBridge V20
    • +OpenTunnel Designer CONNECT Edition
    • +How to log Case?
    • USA State DOT links
    • OpenCivil Ideas: OpenBridge - OpenTunnel
    • Working from Home with OpenBridge Modeler
    • Working Remotely with OpenBridge Designer
    • OpenBridge Tips and Tricks

     
     Questions about this article, topic, or product? Click here. 

    Getting .NET Framework error when launching OBM from Project Wise

    ISSUE:  When launching a design file using OBM (10.10.00.85) from Project Wise using TXDOT workspace we are getting a .NET Framework error shown as below.  Details of the error also listed below:

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at Bentley.ObmNET.Utilities.PWUtil.CheckOutAndGetLocalPath(String pwPath, Boolean isReadOnly)
    at Bentley.ObmNET.Utilities.DefaultFiles.GetFileNameFromConfigVariable(String configVariable, String defaultFilename)
    at Bentley.ObmNET.Model.BridgeInventory.BridgeInventoryUtil.LoadBridgeInventoryIdsFromFile(String configVariable, BridgeInventoryData& bridgeInventoryData, String defaultFilename)
    at Bentley.ObmNET.Model.BridgeInventory.BridgeInventoryUtil.Initalize()
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at Bentley.MstnPlatformNET.AddIn.Load(String[] commandTail, IntPtr mdlDesc)

    RESOLUTION:  When you see "Bentley.ObmNET.Utilities.PWUtil.CheckOutAndGetLocalPath" and "BridgeInventory" in the error log as the one shown above, the likely cause is that below two variables are not getting resolved correctly.  One or both are pointing to a path that is not correct.

    • OBM_ELEMENTNUMBERS_NBI_FILE and
    • OBM_ELEMENTNUMBERS_STATE_FILE
    • Share
    • History
    • More
    • Cancel
    • Dilip Matange [Bentley] Created by Bentley Colleague Dilip Matange [Bentley]
    • When: Mon, Jan 9 2023 10:27 AM
    • Revisions: 1
    • Comments: 0
    Recommended
    Related
    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

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