none
Deploying Winforms ReportViewer control for 64-bit OS RRS feed

  • Question

  • Hi,

    I am getting our .Net Framework 2.0/3.5.1 Winforms app running on 64-bit operating systems (using Vista SP1 as a test platform, but will run on Win7 and Vista). The ReportViewer redistributable package purports to install on the platform and claims to have successfully installed, but when I go to instantiate a reportviewer control, I get a "System.IO.FileNotFoundException" claiming "Could not load file or assembly Microsoft.ReportViewer.WinForms, Version - 8.0.0.0 etc. ..... or one of its dependencies. The Redisributable package I installed (after trying various identically-named links to different files) was "Microsoft Report Viewer Redistributable 2008 (KB952241)." This version claims to run on all sorts of OSes, including 64-bit versions, whereas the other version on the same download page only OSes and does not specify 32-bit or 64-bit.  I did install 2 of the other versions before this, since it was very unclear what needed to be installed, but I uninstalled them. However, the error was the same for all of them.

    What's the problem here? I need to get this running ASAP. Needless to say this runs with no problem on any 32-bit OS. The rest of the app runs fine, except for parts depending on a particular 3rd-party control that I'm tracking down with the control vendor.

    Thanks!

    Friday, June 18, 2010 4:36 PM

Answers

  • What is the version of your Visual Studio? Please make sure that you are using Visual Studio 2008 to build your application.

    The error message indicates that the reportviewer control being loaded was Microsoft ReportViewer 2005 not 2008 which version is Microsoft.ReportViewer.WinForms (9.0.0.0). I recommend that you first delete the ReportViewer control from your Windows form application, remove the ReportViewer control from the Toolbox, add right click your Toolbox, click Choose Items, locate the ReportViewer control and make sure that you select one with the version Microsoft.ReportViewer.WinForms (9.0.0.0).

    If this does not exist, it means that the reportviewer was not correctly installed. You can remove the Microsoft ReportViewer Control from Program and Features in control panel. Then download a new one from http://www.microsoft.com/downloads/details.aspx?familyid=BB196D5D-76C2-4A0E-9458-267D22B6AAC6&displaylang=en which is newer than the one in the security update KB952242, install it to see if it helps.

     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, June 22, 2010 12:18 PM
    Moderator

All replies

  • What is the version of your Visual Studio? Please make sure that you are using Visual Studio 2008 to build your application.

    The error message indicates that the reportviewer control being loaded was Microsoft ReportViewer 2005 not 2008 which version is Microsoft.ReportViewer.WinForms (9.0.0.0). I recommend that you first delete the ReportViewer control from your Windows form application, remove the ReportViewer control from the Toolbox, add right click your Toolbox, click Choose Items, locate the ReportViewer control and make sure that you select one with the version Microsoft.ReportViewer.WinForms (9.0.0.0).

    If this does not exist, it means that the reportviewer was not correctly installed. You can remove the Microsoft ReportViewer Control from Program and Features in control panel. Then download a new one from http://www.microsoft.com/downloads/details.aspx?familyid=BB196D5D-76C2-4A0E-9458-267D22B6AAC6&displaylang=en which is newer than the one in the security update KB952242, install it to see if it helps.

     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, June 22, 2010 12:18 PM
    Moderator
  • Hi Charles,

    Thanks for the reply, which I just saw (was away). Actually, my problem was that my winforms was using the 2005 version (even though I am using VS 2008, probably because I started with Vs 2005) but I was trying to install the 2008 runtime on the target Win64 system thinking that the 2005 version wouldn't run. Now I have installed the 2005 Reportviewer runtime on the target win64 system and it works.

    However, as I am working on a new app version I will probably try your advice to remove the 2005 reportviewer control, install the 2008 one, and change my install accordingly. However, is there a list of new features/bug fixes/outstanding bugs in the 2008 version? I don't want to have new problems without getting at least some fixes and functionality improvements.

    Thanks again,

    Elizabeth

    Monday, July 12, 2010 2:07 PM
  • Hi Elizabeth,

    Welcome back. Unfortunately no official documents are published for the list of bug fixes/features, however Brian Hartman composed a good blog on the new features:
    http://blogs.msdn.com/b/brianhartman/archive/2008/12/05/sql-server-2008-and-the-reportviewer-controls.aspx

     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, July 13, 2010 11:20 AM
    Moderator