Marek
Marek

Reputation: 3575

ReportViewer - System.IO.FileNotFoundException on Windows XP

I have got ReportViewer in my project and when I install the app on Windows XP it says this when I try to do report with ReportViewer: System.IO.FileNotFoundException on Windows XP

Could not load file or assembly 'Microsoft.ReportViewer.WinForms,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 or one of its dependencies.
The system cannot find the file specified. File name: 
Microsoft.ReportViewer.WinForms, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91

When I install this app on my laptop with Windows 8 everything is working fine. How can I fix this issue? I tried to search through the internet but found nothing helpful.

Thanks for your time.

Upvotes: 2

Views: 7917

Answers (1)

CristisS
CristisS

Reputation: 1163

I had the same problem. You are right with the Report Viewer redistributable, but you need another version. One of these two should do the trick:

Microsoft Report Viewer 2012 Runtime CTP - this is the one that I used, if I remember correctly.

MICROSOFT REPORT VIEWER 2012 RUNTIME

Also note that there may be some other requirements that will be prompted for by the Report Viewer 2012 installation. You can find these also on the internet, for example MICROSOFT REPORT VIEWER 2012 RUNTIME also requires (download page -> Additional information):

Pre-requisites Microsoft SQL Server 2008 Reporting Services or higher for server processing mode. NET Framework 3.5 SP1 or .NET Framework 4.0 The SQL Server System CLR Types package

EDIT

According to this post on MSDN and the information on the Report Viewer redistributables, they cannot be used on Windows XP.
I heard you can overcome this problem if you take the required dlls (including SQLSysClrTypes) and add them to the project and reference them in the project. Also make sure that Copy Local is set to True.

I don't know if this affects the terms of use for the Report Viewer dlls (are they redistributable outside the ReportViewer package?).

EDIT 2

According to this you have to check the EULA for the respective redistributable package. I think further inquiry is required for certainty.

Upvotes: 2

Related Questions