This is a migrated thread and some comments may be shown as answers.

Cannot Find Type ReportSource

2 Answers 193 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
BRIAN
Top achievements
Rank 1
BRIAN asked on 13 Nov 2013, 09:57 PM

Hello Telerik,

 

I am posting my question here at WPF > General Discussions, because I didn’t see a forum for WPF > ReportViewer (the closest thing I found was WPF > PDFViewer). I don’t want to get lost or forgotten, so if you know where I should post this question, please reply back, and let me know. BTW, I went ahead and posted a duplicate of this question on the Telerik Reporting forum.

 

I am using Visual Studio 2010 and RadControls for WPF, v.2013.3.1016.40 (Dev). My WPF project references Telerik.Reporting.dll, runtime version v4.0.30319.

 

I have been attempting to use the web resource How to: Add report viewer to a WPF application. When I try to apply Step #4 in this resource, I get the error:

 

    Cannot find type Telerik.Reporting.ReportSource in module Telerik.Reporting.dll.

 

When I search the Internet for help, I cannot find a resolution to this problem. Can you please help?

 

Thank you

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 18 Nov 2013, 10:06 AM
Hello Brian,

Generally this error may occur due to a version mismatch. Thus our suggestion is to go through the Upgrade Wizard to make sure that the report project and WPF report viewer project are using Telerik Reporting Q3 2013.

If this is not the case we will appreciate if you send us the problematic project in to review on our end. Generally you can attach archives in support threads.

Regards,
Peter
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
BRIAN
Top achievements
Rank 1
answered on 18 Nov 2013, 04:07 PM

Peter,

 

Thank you for your reply.

 

Running the Telerik report upgrade wizard did not resolve this problem. I still got the same error when trying to add a report viewer control to a WPF window.

 

I was able to resolve this problem by going into the app.config and removing the following:

 

<runtime>

       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

             <dependentAssembly>

                    <assemblyIdentity name="Telerik.Reporting" publicKeyToken="A9D7983DFCC261BE" culture="neutral"/>

                    <bindingRedirect oldVersion="0.0.0.0-7.2.13.1016" newVersion="7.2.13.1016"/>

             </dependentAssembly>

       </assemblyBinding>

</runtime>

After removing this part of the app.config, I was then able to successfully add a report viewer control to a WPF window.

 

Thank you

Tags
General Discussions
Asked by
BRIAN
Top achievements
Rank 1
Answers by
Peter
Telerik team
BRIAN
Top achievements
Rank 1
Share this question
or