Posted on: 1/2/2015 7:07:44 AM | Views : 3267

Hi All
        I try to export report to  excel and pdf from report viewer. but i geting error like  below
[A]Microsoft.Reporting.WebForms.ReportHierarchy cannot be cast to Microsoft.Reporting.WebForms.ReportHierarchy. Type A originates from 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll'. Type B originates from 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\11.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.WebForms.dll'.
I am using visual studio 2012. Where is the problem?

Go to the complete details ...