Clean install Microsoft Identity Manager SP2 on Windows 2012R2 not working

Arjan Kauffman 1 Reputation point
2022-08-22T12:59:39.84+00:00

When I execute a clean install of the MIMService and the PAM modules on a Windows 2012 R2 server, the PAM REST API fails. error message is pasted below. Can anyone help me out?

Server Error in '/' Application.
Could not load file or assembly 'Microsoft.Data.Edm, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Data.Edm, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Data.Edm, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Data.Edm, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/Program Files/Microsoft Forefront Identity Manager/2010/Privileged Access Management REST API/
LOG: Initial PrivatePath = C:\Program Files\Microsoft Forefront Identity Manager\2010\Privileged Access Management REST API\bin

Calling assembly : Microsoft.IdentityManagement.PamRestApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.

LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files\Microsoft Forefront Identity Manager\2010\Privileged Access Management REST API\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.Data.Edm, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/b8539a4b/8ff3cfcf/Microsoft.Data.Edm.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/b8539a4b/8ff3cfcf/Microsoft.Data.Edm/Microsoft.Data.Edm.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Forefront Identity Manager/2010/Privileged Access Management REST API/bin/Microsoft.Data.Edm.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Stack Trace:

[FileLoadException: Could not load file or assembly 'Microsoft.Data.Edm, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Microsoft.IdentityManagement.PamRestApi.V1.WebApiConfig.Register(HttpConfiguration config) in x:\bt\1016264\repo\src\dev\Pam\RestApi\v1\WebApiConfig.cs:65
Microsoft.IdentityManagement.PamRestApi.WebApiApplication.Application_Start() in x:\bt\1016264\repo\src\dev\Pam\RestApi\Global.asax.cs:28

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
610 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,528 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2022-08-23T14:42:58.497+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having issues related to Microsoft Identity Manager

    This can happened if the file version is correct, but the assembly binding is wrong.

    Try to Clear online cache by running mage.exe -cc, uninstall all versions of installed applications that might have a strong named assembly with the same version, and reinstall the application.

    Also , try to completely remove Microsoft Identity Manager and Install it again.

    ----------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Arjan Kauffman 1 Reputation point
    2022-08-23T15:25:50.447+00:00

    [This can happened if the file version is correct, but the assembly binding is wrong. Try to Clear online cache by running _I_mage.exe -cc, uninstall all versions of installed applications that might have a strong named assembly with the same version, and reinstall the application.]
    How can I determine what applications might have strong named assemblies? Please keep in mind I tried a fresh install, there is no previous installation on this server.

    [Also , try to completely remove Microsoft Identity Manager and Install it again]
    This is what I tried several times. This has been no solution so far.

    0 comments No comments

  3. Juni Inacio 1 Reputation point
    2022-11-11T12:42:20.43+00:00

    I'm facing the same issue with installing PAM without SharePoint, does anyone have a solution for this? I'm installing MIM PAM using the MIM 2016 installation media with SP2.

    0 comments No comments