1. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  2. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  3. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Bug SimTools .NET Framework Unhandled Exception

Discussion in 'SimTools DIY Version' started by amahvan, Apr 29, 2021.

  1. amahvan

    amahvan New Member Gold Contributor

    Joined:
    Apr 2, 2021
    Messages:
    9
    Balance:
    38Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    Hey all, I have been happily and comfortably using SimTools for several months now with no issues at all. Today I decided to download the Xplane11 plugin and give it a try.

    I ran the SimTools PluginUpdater, it updated successfully.
    Then I opened Game Manager and got a .NET Framework error. "Object reference not set to an instance of an object." aaaaannnd it was broken.

    Details:

    Code:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.ArgumentException: The path is not of a legal form.
       at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
       at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
       at System.IO.Path.GetFullPathInternal(String path)
       at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
       at System.IO.DirectoryInfo..ctor(String path)
       at SimTools_GameManager.frm_GameManager.If_StartWithWindows_Checked()
       at SimTools_GameManager.frm_GameManager.frmMain_Load(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at SimTools_GameManager.frm_GameManager.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)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    SimTools_GameManager
        Assembly Version: 0.2.5.1
        Win32 Version: 0.2.5.1
        CodeBase: file:///C:/Program%20Files%20(x86)/SimTools/SimTools_GameManager.exe
    ----------------------------------------
    fZMkmPzPHuCqHgqhDnkBggdEJqAS
        Assembly Version: 0.0.0.0
        Win32 Version: 0.2.5.1
        CodeBase: file:///C:/Program%20Files%20(x86)/SimTools/SimTools_GameManager.exe
    ----------------------------------------
    Microsoft.VisualBasic
        Assembly Version: 10.0.0.0
        Win32 Version: 14.8.4084.0 built by: NET48REL1
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4084.0 built by: NET48REL1
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4084.0 built by: NET48REL1
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Runtime.Remoting
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4084.0 built by: NET48REL1
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    I have already attempted:
    • Uninstalling and Reinstalling SimTools from scratch
    • NET Framework Repair Tool (no solution)
    • Administrator CMD Scan (no solution)
    • CMD DISM (no solution)
    • Windows Features > Disable all NET Framework (no solution)
    • Windows Features > Enable all NET Framework (no solution)
    • Reinstalling NET 4 (no solution - "Your operating system is already running this)
    I'm running out of ideas here.

    Attached Files:

  2. Ads Master

    Ads Master

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    16,895
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    122,749Coins
    Ratings:
    +9,683 / 47 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Hopefully @yobuddy has some suggestions.
  4. amahvan

    amahvan New Member Gold Contributor

    Joined:
    Apr 2, 2021
    Messages:
    9
    Balance:
    38Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    I ran out of potential fixes, and resorted to a full factory reset of my virtual machine (I'm playing on Shadow.tech), and now that I've reinstalled everything, SimTools won't let me activate because my "activation key has been used too many times" . It never ends.
  5. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    3,926
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    36,852Coins
    Ratings:
    +4,064 / 11 / -0
    You can send an email here buddy, and we will get it sorted.
    https://simtools.us/contact-us/

    But if we install the xplane plugin and a problem happens, we could try to remove it.
    I realize I'm a bit late to the party, but if we goto "C:\Users\(your user folder)\AppData\Local\SimTools\GamePlugins" we can simply delete the game dll and then restart simtools to see if we are up and running again.

    Take care,
    yobuddy
  6. amahvan

    amahvan New Member Gold Contributor

    Joined:
    Apr 2, 2021
    Messages:
    9
    Balance:
    38Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    Just shot an email over a few mins ago--I appreciate it big time bro. Trying the entire process from scratch again with a fresh start, and hoping I can get it working properly.

    I tried this--the issue was a .NET Framework exception, and even after deleting all dll files, I could not get SimTools to launch at all without throwing the exception. It was also the only program affected, so I thought a complete uninstall and deletion of all files would fix it, but on reinstall the same problem occurred.
    • Informative Informative x 1