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!

Advertisements

Author: Debajit

I am a Dynamics CRM Most Valuable Professional (MVP) with 10 years of experience in Microsoft .NET Technologies and 7 years of dedicated experience in Microsoft Dynamics CRM. I have worked with companies like Microsoft, SanDisk, PwC, TMF Group and have extensive experience of implementing complex CRM solutions from both offshore and client side. Currently the face of XrmForYou.com with significant experience in delivering corporate training on Dynamics CRM and have already delivered multiple projects to client through XrmForYou.com Author of multiple tools on codeplex including the 'Role Based Views' and 'CRM-Sharepoint Metadata manager & Attachment Extractor' which are available for commercial use under XrmForYou.com For consulting/ training, drop me a note at info@xrmforyou.com or visit our website www.xrmforyou.com

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?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s