Microsoft Dynamics 365 Blog


When installing Reporting Services extensions on SQL Server 2014 you may run into this error:

“Could not load file or assembly ‘Microsoft.SqlServer.BatchParser, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91’ or one of its dependencies. An operation is not legal in the current state. (Exception from HRESULT: 0x80131509)”.

To resolve this issue you should install the following components of SQL 2008 R2 Shared Management Objects:

  • Microsoft® System CLR Types for SQL Server® 2008 R2
  • Microsoft® SQL Server 2008 R2 Shared Management Objects
  • Microsoft® SQL Server 2008 R2 ADOMD.NET
  • Microsoft® SQL Server 2008 R2 Analysis Management Objects

Go to the Microsoft® SQL Server® 2008 R2 Feature Pack download page:

Then, expand “Install Instructions” to see the download links.

I hope this is helpful!


We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!