Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all

I have to use MMC 3.0 in my application which is targeting dot net framework 4.0. while reading about MMC 3.0 i found it will work with upto .NET Framework 3.5 only. i read so many articles but did not found any solution to make it work with .NET framework 4.0 and so .

Please share any updates on this.

TIA

What I have tried:

I searched on google but did not find any solutions
Posted
Updated 17-Oct-17 7:59am

1 solution


In Windows 7, Windows Server 2008 R2, and earlier releases of the Windows operating system, MMC uses CLR 2.0 by default, but you can specify CLR 4.0 for a specific console. For more information about and sample lines of code for the configuration file that lets you specify a different version of CLR, see Activation Configuration Files[^].

...

Each console session can use only one version of the CLR. You cannot run MMC with more than one CLR version.

If a console is using CLR 2.0, and a user tries to add or run a snap-in that uses CLR 4.0, MMC displays an error message, and the CLR 4.0 snap-in cannot be loaded. MMC does not close or fail; however, users can continue to run the console without the CLR 4.0 snap-in.

Users can add a CLR 2.0 snap-in to a console that is using CLR 4.0; the snap-in runs in CLR 4.0. Snap-ins that are compatible with CLR 4.0 are expected to work without issues based on CLR backward compatibility support.


c# - MMC SnapIn and .Net 4.x - Stack Overflow[^]
Can not use .Net 4.0 to create MMC SnapIn | Microsoft Connect[^]


In summary:
  • v4 snaps-ins can only load in a console which is using v4 of the CLR.
  • On Windows 8, 8.1, 10, 2012 and 2016, you should be fine.
  • On earlier versions, you'll need to modify the configuration in order to get MMC to load the v4 CLR.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900