🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Exception starting
This page was created by Hans.karlsen on 2022-01-20. Last edited by Wikiadmin on 2026-07-29.

You can restore startup of MDriven Designer or MDriven Framework for VS2022 when an older Visual Studio 2019/17 installation has left incompatible assemblies in the Windows Global Assembly Cache (GAC).

Symptoms

Use this procedure when MDriven Designer or MDriven Framework for VS2022 fails while loading the model designer or plug-ins, and the exception refers to an assembly-version mismatch. Typical messages include:

Problem loading plugins. Exception in 'Modlr.Logic.ModlrLogic'

or:

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)

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

Cause

The Global Assembly Cache (GAC) is a Windows assembly store. Older versions of MDriven Framework for Visual Studio 2019/17 placed assemblies in the GAC. MDriven Designer and MDriven Framework for VS2022 do not use the GAC, but stale assemblies from the older installation can still be resolved during startup and conflict with the assemblies required by the newer software.

The conflict commonly involves GenericFindInWindowControl, WECPOFLogic, or assemblies whose folder name starts with Eco..

Fix the stale GAC assemblies

Choose one of the following approaches. Both address the same stale-assembly issue.

Option 1: Refresh the older Visual Studio 2019/17 framework installation

  1. Install the latest available version of MDriven Framework for VS2019/17.
  2. Start MDriven Designer or MDriven Framework for VS2022 again.

Installing the updated VS2019/17 framework refreshes the affected GAC assemblies with versions that work with the newer MDriven tools.

Option 2: Remove the named stale assembly folders from the GAC

  1. Open Windows File Explorer.
  2. Go to C:\Windows\Microsoft.NET\assembly\GAC_MSIL\.
  3. Delete only the following folders and their contents:
    • GenericFindInWindowControl
    • WECPOFLogic
    • Every folder whose name matches Eco.*
  4. Start MDriven Designer or MDriven Framework for VS2022 again.

Do not remove unrelated folders from GAC_MSIL. This procedure targets the old assemblies known to cause the MDriven startup conflict.

Verify the result

After either fix, start the affected application and open the model designer. The plug-in loading error and the Modlr.Logic.ModlrLogic type-initializer exception should no longer occur.

If the error is different

This page covers a specific GAC version conflict during MDriven Designer or MDriven Framework startup. Do not use it as a general fix for all startup exceptions.

See also