Exception starting

It has come to our attention that versions of MDriven Designer and versions of MDriven Framework for VS2022 fails to start for some users.

The reason for this in an unfortunate residue from other older installations of MDriven Framework for VS2019/17.

MDriven Framework for VS2019/17 put some assemblies in the GAC (Global assembly cache) - but MDriven Designer och MDriven Framework does not use the GAC. The ambition is to move away from relying on the GAC in the future.

However if you have installed older versions of MDriven Framework for VS2019/17 you may experience issues like described here:

Problem loading plugins. Exception in 'Modlr.Logic.ModlrLogic', and the Model Designer doesn't run.

or

INNER EXCEPTION: Could not load file or assembly 'GenericFindInWindowControl, Version=7.0.0.13804, Culture=neutral, PublicKeyToken=46a833be9e90de8c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

at Modlr.Logic.ModlrLogic..cctor()

The type initializer for 'Modlr.Logic.ModlrLogic' threw an exception.

at Modlr.Logic.ModlrLogic.remove_OnFocusInTree(OnFocusInTreeDelegate value)

at Modlr.ModelEditor.ModlrTree..ctor()

at Gaffr.Form1.InitializeComponent()

at Gaffr.Form1..ctor()

How to fix

To fix install latest version of MDriven Framework for VS2019/17 - this will refresh the GAC with updated assemblies that work with new versions of MDriven Designer and of MDriven Framework for VS2022.

or

open GAC C:\Windows\Microsoft.NET\assembly\GAC_MSIL\ and delete folder and contents:

  • GenericFindInWindowControl
  • WECPOFLogic
  • Eco.* (all folders matching Eco.*)

After one of theses actions MDriven Designer and MDriven Framework for VS2022 will work as expected.

This page was edited 48 days ago on 02/10/2024. What links here