Visual Studio 2015 stops working after installing the Microsoft Dynamics 365 Report Authoring Extension

This article provides a solution to an error that occurs when you start SQL Server Data Tools for Visual Studio.

Applies to:   Microsoft Dynamics CRM
Original KB number:   4032777



The issue described here has been resolved with version of the Microsoft Dynamics 365 Report Authoring Extension.

In the following scenario:

  • You've Visual Studio 2015 with SQL Server Data Tools installed.
  • You install the Microsoft Dynamics 365 Report Authoring Extension (version

When you start SQL Server Data Tools for Visual Studio, Visual Studio closes with the message:

"Microsoft Visual Studio 2015 has stopped working."

The error in the Windows Event Viewer may look like this:

Application: devenv.exe
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at Microsoft.VisualStudio.Services.Client.AccountManagement.AccountManager.GetAccountProviderCore(System.Guid)
at Microsoft.VisualStudio.Services.Client.AccountManagement.AccountManager+<>c__DisplayClass32_0.<GetAccountProviderAsync>b__0()
at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)

Uninstalling the Report Authoring Extension doesn't resolve the problem.


This issue occurs because of an issue in the Report Authoring Extension setup process. When the Report Authoring Extension is installed using the default installation path, the following assemblies are placed into C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE, replacing any older versions of the files already in that location.

  • Microsoft.IdentityModel.Clients.ActiveDirectory.dll - File Version: 2.22.x.x
  • Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll - File Version: 2.22.x.x

Visual Studio attempts to load older versions of the files that don't exist, because the devenv.exe.config file contains a binding redirect entry that still points to version The Report Authoring Extension setup process didn't update the binding redirect to point to version when the files were replaced.


To resolve this issue, follow these steps to change the binding redirects in the devenv.exe.config file to point to version

  • Edit these two files to change the value of the versions for the bindingRedirect entry to the correct version,

    • C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE - devenv.exe.config
    • C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies - PreviewProcessingService.exe.config


    If you used a different installation location than the default, you'll need to modify the path to these files to the location where you installed Visual Studio.
    If the PreviewProcessingService.exe.config file doesn't already contain the bindingRedirect, you don't need to add it.

  • Find the following sections in both of the files:

        <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="" newVersion="" />
        <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="" newVersion="" />
  • Change the following line from:

    <bindingRedirect oldVersion="" newVersion="" />
    <bindingRedirect oldVersion=" ****" newVersion="****" />

  • Save the file and restart Visual Studio.