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 126.96.36.199 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 8.2.2.0171)
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:
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
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 184.108.40.206. The Report Authoring Extension setup process didn't update the binding redirect to point to version 220.127.116.11 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 18.104.22.168:
Edit these two files to change the value of the versions for the bindingRedirect entry to the correct version, 22.214.171.124:
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:
<dependentAssembly> <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="126.96.36.199-188.8.131.52" newVersion="184.108.40.206" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="220.127.116.11-18.104.22.168" newVersion="22.214.171.124" /> </dependentAssembly>
Change the following line from:
<bindingRedirect oldVersion="126.96.36.199-188.8.131.52" newVersion="184.108.40.206" />
<bindingRedirect oldVersion="220.127.116.11- **18.104.22.168**" newVersion="**22.214.171.124**" />
Save the file and restart Visual Studio.