Fix the “Failed to Add Assembly Redirects” Error in Dynamics 365 F&O UDE

Failed to add assembly redirects to test platform configuration files

Fix the “Failed to Add Assembly Redirects” Error in Dynamics 365 F&O UDE

If you’re working with Dynamics 365 Finance & Operations Unified Developer Experience (UDE) and frequently encounter the following error when launching Visual Studio:

“Failed to add assembly redirects to test platform configuration files. Please open the output window pane ‘Dynamics 365 for Finance and Operations’ to see more details.

You’re not alone.

This is a common issue that many Dynamics 365 F&O developers experience when starting Visual Studio in a UDE environment. The error can be frustrating because it appears before you even begin development work and may prevent certain development functions from operating correctly.

Symptoms

You may notice the following:

  • Visual Studio displays an assembly redirect error during startup.
  • D365FO projects fail to load correctly.
  • The Dynamics 365 extension reports configuration issues.
  • Development productivity is interrupted while troubleshooting the error.

Quick Resolution

  • Close Visual Studio
  • Reopen Visual Studio using “Run as Administrator”

In most cases, this immediately resolves the issue and allows Visual Studio to complete the required configuration updates successfully.

Why Does This Happen?

During startup, the Dynamics 365 Finance & Operations Visual Studio extension attempts to update and maintain various test platform configuration files.

These configuration files require write permissions.

If Visual Studio is launched without sufficient privileges, the D365FO extension cannot modify the required files and displays the following error:

Failed to add assembly redirects to test platform configuration files.

Running Visual Studio as Administrator grants the necessary permissions and allows the configuration updates to complete successfully.

Summary

When you encounter the following error in a Dynamics 365 F&O UDE environment:

“Failed to add assembly redirects to test platform configuration files”

The quickest resolution is often the simplest one:

  • Run Visual Studio as Administrator

This provides the D365FO extension with the permissions required to update configuration files and eliminates the assembly redirect error.

Parag Chapre

Parag Chapre is a Microsoft MVP in the fields of Dynamics 365 Finance & Operations, Human Resources, and Power Platform, recognized for his outstanding contributions to the Microsoft Dynamics community.

With over 15 years of hands-on expertise in various Microsoft Dynamics 365 areas, Parag has designed and delivered complex, innovative solutions for customers across industries and geographies. He has also provided leadership and technical guidance to project teams, managed offshore and onshore resources, and worked closely with Microsoft Product teams. Parag is passionate about sharing his knowledge and insights through his personal website, blog posts, articles, and community events. He is a member of the Microsoft Biz Apps Community Advisory Board, a Dynamics 365 Human Resource Community star, a Dynamics 365 Community contributor, and a Dynamics 365 Community Spotlight honoree.

Leave a Reply