Working with legacy Handles

Prior to the invention of declarative ViewModels you got data into views with different types of handles.

These are still available today in VS2022 but we do not recommend to use these for new stuff since the ViewModels are superior in so many ways (maintenance, efficient fetch, type checking, element usage tracking etc).

The handles show up in the toolbox for relevant designers like in WinForms-form designer and EcoSpace designer:

2022-08-02 08h51 12.png

When you try to use them - or try to set up an expression in one of them you may experience an issue like this:

"You have version x of the MDrivenFramework installed, but version y on the assemblies in the solution"

2022-08-02 08h46 10.png

To fix this you should have the same version of the MDriven VS2022-vsx installed as you use in the nuget packages in your solution.

Best way to get on track:

  1. Install the latest MDrivenFramework
  2. Update the ECO/MDriven nuget packages in the solution to use the same version number
  3. Recompile the solution

Troubleshooting

If you have gone through the steps above but still get experience this problem it is probably related to old GACced versions on MDriven Assemblies.

The GAC (Gllobal assembly cache of .net) was used by MDrivenFramework for VS2019 and earlier.

To remove the GAC assemblies you can simple uninstall VS2019 - but you may also need to clear the GAC manually - you do this by opening this folder as admin: C:\windows\Microsoft.NET\assembly\GAC_MSIL

Delete folders in here named: Eco.* and MDriven.* and WECPOFLogic

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