Reputation: 33
I am getting the following error when running a report against a SQL Server database - any ideas?
Thanks
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.SqlServer.Types, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Upvotes: 0
Views: 954
Reputation: 414
If you are using SSRS as a client file (.rdlc
) in your web or Windows app, you need the following assemblies:
Microsoft.ReportViewer.ProcessingObjectModel
Microsoft.ReportViewer.WebForms
Microsoft.ReportViewer.Common
Microsoft.SqlServer.Types
Download the assemblies via NuGet:
Also make sure that the entry for this is backward compatible in the web.config
configuration.
In your references folder; right-click and set copy local = true
.
Upvotes: 0