MMC 3.0与.NET framework 4.0? [英] MMC 3.0 with .NET framework 4.0?

查看:141
本文介绍了MMC 3.0与.NET framework 4.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我必须在我的应用程序中使用MMC 3.0,其目标是dot net framework 4.0。在阅读MMC 3.0时,我发现它只适用于.NET Framework 3.5。我阅读了很多文章,但没有找到任何解决方案,使其适用于.NET Framework 4.0等。



请分享任何更新。



TIA



我的尝试:



我在谷歌搜索但没有找到任何解决方案

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

推荐答案



在Windows 7,Windows Server 2008 R2和Windows操作系统的早期版本中,MMC默认使用CLR 2.0,但您可以为特定控制台指定CLR 4.0。有关允许您指定不同版本CLR的配置文件的代码行和示例行的更多信息,请参阅激活配置文件 [ ^ ]。



...



每个控制台会话只能使用一个版本的CLR。您无法运行具有多个CLR版本的MMC。



如果控制台正在使用CLR 2.0,并且用户尝试添加或运行使用CLR的管理单元4.0,MMC显示错误消息,并且无法加载CLR 4.0管理单元。 MMC没有关闭或失败;但是,用户可以在没有CLR 4.0管理单元的情况下继续运行控制台。



用户可以将CLR 2.0管理单元添加到使用CLR 4.0的控制台;管理单元在CLR 4.0中运行。与CLR 4.0兼容的管理单元预计可以在没有基于CLR向后兼容性支持的问题的情况下工作。


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和.Net 4.x - 堆栈溢出 [ ^ ]

不能使用.Net 4.0创建MMC SnapIn | Microsoft Connect [ ^ ]





总结:

  • v4 snaps-ins只能在使用CLR v4的控制台中加载。
  • 在Windows 8,8.1,10,22012上你应该没问题。
  • 在早期版本中,你需要修改配置才能让MMC加载v4 CLR。​​


  • 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.

    • 这篇关于MMC 3.0与.NET framework 4.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆