Overview
Integrating M-Files with Dynamics 365 can significantly enhance your organization's data management capabilities. However, users may occasionally encounter integration challenges that involve the Windows Identity Foundation (WIF) and access control in .NET applications. In this article, we'll discuss a common issue related to WIF and provide a clear and concise solution to help you overcome it.
Impacted Products and Versions
M-Files (version 23.9)
Symptoms
During the process of installing or migrating M-Files, you might encounter the following error in the Event Viewer:
<< Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxx' or one of its dependencies. The system cannot find the file specified. >>
Cause and Reason
The root cause of this issue is the Windows Identity Foundation (WIF) requirement for authentication and access control in .NET applications. When certain features or components required for WIF are missing or misconfigured, integration errors, such as the one mentioned, may occur.
Solution
Windows Server operating systems often come with a modular design, allowing you to add or remove features to customize the server's functionality. However, some features are not installed or enabled by default to minimize the server's attack surface and resource usage.
It appears that the solution to this integration issue between M-Files and Microsoft Dynamics CRM involved enabling the Windows Identity Foundation (WIF) feature on Windows Server 2022 Datacenter.
The Windows Identity Foundation (WIF) plays a crucial role in handling authentication and security in .NET applications.
