Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMC not loading in 2.2.0.18 #20

Closed
k-korn opened this issue Jul 10, 2018 · 5 comments
Closed

MMC not loading in 2.2.0.18 #20

k-korn opened this issue Jul 10, 2018 · 5 comments
Labels

Comments

@k-korn
Copy link

k-korn commented Jul 10, 2018

OS: Windows Server 2016 ver. 1607, previously installed v. 2.0 of ADFS MFA.

Steps to reproduce:

  • Run UnRegister-MFASystem
  • Uninstall MFA 2.0
  • Reboot
  • Install 2.2.0.18

As a result, the following message appears trying to load the MMC snap-in:
image

Full text below:

Could not load file or assembly 'Neos.IdentityServer.Console, Version=2.0.0.0, Culture=neutral, PublicKeyToken=175aa5ee756d2aa2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

System.IO.FileLoadException
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Activator.CreateInstance(String assemblyString, 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.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 Microsoft.ManagementConsole.Executive.SnapInInitializationOperation.OnStart()
   at Microsoft.ManagementConsole.Executive.RunningOperationsTable.EnqueueOperation(Operation operation)
   at Microsoft.ManagementConsole.Advanced.FrameworkSnapInFactory.Microsoft.ManagementConsole.Advanced.ISnapInFactory.CreateSnapIn(Int32 bookkeepingId, String snapInKey, Object& snapIn)

@redhook62
Copy link
Member

Hi, K-Korm

If your have unregistered the configuration, the MMC snapin cannot load it.

Same thing, for PowerShell, or the web Site.

So try to run Register-MFASystem.

And After run Import-MFASystemConfiguration with your saved config file

Regards

@k-korn
Copy link
Author

k-korn commented Jul 12, 2018

Hi redhook62, thanks for the suggestion.

Tried to run "Register-MFASystem" and "Import-MFASystemConfiguration". Both completed successfully, however error still persists.

The thing that is suspicious for me is that MMC tries to load "Neos.IdentityServer.Console, Version=2.0.0.0" (version = 2.0, and not 2.2), and that assembly is not available.

@anorstrom
Copy link

I run into the same issue in one of our LAB domains. (First domain where I tested the 2.2 beta, it worked fine. Then I was going to test in an other LAB domain, I did the same thing, but there I run into this problem.)

I then tried Unregister, Uninstall, Restart and then Install and Register again (tried both restoring and not restoring old config). But I keep getting this "Unhandled Exception..." too when I try to open the MMC.

Could not load file or assembly 'Neos.IdentityServer.Console, Version=2.0.0.0, Culture=neutral, PublicKeyToken=175aa5ee756d2aa2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

@redhook62
Copy link
Member

Hi,

On my adfs server 2016 the MMC version is 3.0

image

These servers exposed on the internet must be updated regulary with Windows Update.

It seems, that the MMC MFA Snap is not well registered (self registration with assembly type at install for x64 and x86 registry access). I can reproduce your problems with ADFS on Windows 2012 R2 !

Lauch Regedit as administrator
Select HKEY_CLASSES_ROOT
Search for : FX:{9627f1f3-a6d2-4cf8-90a2-10f85a7a4ee7}
In the right pane look at the Type attribute and modify the version with 2.2.0.0 if needed.

I think, you can Import your saved config file with Import-MFASystemConfiguration.

Surely, a security problem with OS, the new assembly not seems to register itself correctly.
I will check that this Week-end

Regards

@redhook62 redhook62 added bug and removed enhancement labels Jul 12, 2018
@k-korn
Copy link
Author

k-korn commented Jul 13, 2018

Thanks, workaround with regedit fixed the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants