The type Microsoft.Crm.Web.Reporting.CrmReportServerConnection, Microsoft.Crm.Application.Pages, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 does not implement IReportServerConnection or could not be found

We encountered this error recently when we upgraded from CRM 2013 to CRM 2015. We had our plugin where we used to execute a custom SSRS report and get the byte content of the report and create an attachment for an entity. For this we had a reference to the Microsoft.ReportView.WebForms dll v 10.0

The code used to work perfectly in CRM 2013. However when we upgraded to CRM 2015, we started getting the above error. The reason for this is because CRM 2013 utilizes Microsoft.Crm.Application.Pages.dll v6.0 which is compatible with Microsoft.ReportViewer.WebForms. dll v10.0. However CRM 2015 used the Microsoft.Crm.Application.Pages.dll v7.0 which goes with Microsoft.ReportViewer.WebForms. dll v11.0.

Updating our project to refer to Microsoft.ReportViewer.WebForms. dll v11.0 resolved this issue.

 

Hope this helps!

4 thoughts on “The type Microsoft.Crm.Web.Reporting.CrmReportServerConnection, Microsoft.Crm.Application.Pages, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 does not implement IReportServerConnection or could not be found”

  1. Where are Microsoft.Crm.Application.Pages.dll and Microsoft.ReportViewer.WebForms. dll found? I can’t see them in the sdk

    1. Hi,
      Microsoft.Crm.application.Pages.dll is an assembly which is used by CRM Platform and hence it is not found in the SDK. However once you install CRM, you would be able to see the dll in the bin folder.
      Microsoft.ReportViewer.WebForms.dll comes with .Net installation.
      Ideally it would not be required to use the reporting dll. However we had a requirement where we needed to execute a SSRS report dynamically from the plugins. Hence we needed to refer the Microsoft.ReportViewer.WebForms.dll

  2. Is it OnPrem or Online CRM system?. I had the same requirement. Since i have a CRM online system, i could not use this Microsoft.ReportViewer.WebForms.dll because of the sandbox deployment.
    Any ideas?

Comments are closed.