Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-5082: Group Policy Management Console fails to open on Windows Server 2012 with Centrify installed

Centrify DirectControl ,  

12 April,16 at 11:17 AM

Applies to:

Centrify DirectManage Access 5.2.x and below on Windows Server 2012


Problem:

When attempting to open Group Policy Management Console or Group Policy Advanced Audit Policy Configuration setting on Windows Server 2012 after installing Centrify, it fails to open with an error similar to this one: 

System.BadImageFormatException: Could not load file or assembly 'dnscmmc, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.  File name: 'dnscmmc, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Exception Type:

System.BadImageFormatException

Exception stack trace:

Server stack trace: 
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
at Microsoft.ManagementConsole.Internal.SnapInClient.CreateSnapIn(String assemblyName, String typeName)
at Microsoft.ManagementConsole.Internal.ClassLibraryServices.Microsoft.ManagementConsole.Internal.IClassLibraryServices.CreateSnapIn(String assemblyName, String typeName)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)



Cause:

This is caused by a discrepancy in .NET version number used in both applications.  
Windows Server 2012 uses .NET 4.0, but Centrify's snap-in uses .NET 3.


Workaround:

There is a fix for this problem in Centrify DirectManage 2013.3 (Version 5.1.2) and later, but it only works if mmc.exe.config, which contains some configurations for MMC that are used to fix this error, is applied.  
  1. Copy the attached mmc.exe.config to the same directory as mmc.exe. By default, this is \Windows\System32\.  
    • ​​Note: If there is already a file with the same name in the directory, back it up by renaming it to mmc.exe.config.bak before copying. 
  2. Try to open up Group Policy Management Console again.

Solution:

Install the latest release Centrify Suite 2016 (CDM 5.3.0).
Attachments:

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.