WPF can't install because of ReportViewer.Wpf Version GAC issue

9 posts, 1 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 31 Dec 2012 Link to this post

    When I'm trying to install my WPF application on a computer that isn't my development PC, I get an error saying:
    "Unable to install or run the applcation.  The application requires that assembly Telerik.ReportViewer.Wpf Version 6.2.12.1025 be installed in the Global Assembly Cache (GAC) first.

    I looked and I made a change so that my reference of Telerik.ReportViewer.Wpf CopyLocal =True
    but that didn't help.  I'm still getting this error.  It's probably something in my configuration I need to change.  Any suggestions?
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Jan 2013 Link to this post

    Hi Dan,

    Since Q3 2012 the Telerik.ReportViewer.Wpf control is built against .NET Framework 4.0 and therefore .NET 4 is required as otherwise we cannot install the WPF viewer assembly into GAC. We have already made some changes in the installer to improve this behavior, but for the time being you would need to install .NET 4 in order for the installer to succeed.

    Greetings,
    Steve
    the Telerik team

    HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

  3. DevCraft banner
  4. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 03 Jan 2013 Link to this post

    .NET 4.0 was installed on that machine.  I re-downloaded .NET framework 4.0 and it did a repair on itself.  I restarted the computer and tried again, but I got the same error message.  This is on Windows XP

    I checked the version looking at 
    %systemroot%\Microsoft.NET\Framework

    and the version installed before and after I re-downloaded was
    v4.0.30319

  5. Answer
    Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Jan 2013 Link to this post

    Hello Dan,

    Please excuse me for the confusion - I originally assumed that you are having problems installing Telerik Reporting on your machine. On second read of your post, I now see that you are installing your own WPF application.

    In that case, the error you get means that it cannot locate the Telerik.ReportViewer.Wpf.dll. Make sure the reference to this assembly is to the bin folder of your application and not to assembly from GAC. Rebuild your project after setting Copy Local = true.

    Generally as long as the .NET CLR can locate the required assemblies (see: How the Runtime Locates Assemblies) you should be fine, but in your scenario this seems to be the problem. If the problem persists, please run the fuslogvw (Assembly Binding Log Viewer) which would yield pointers where your project looks for the assemblies and which assemblies are being loaded.

    Regards,
    Steve
    the Telerik team

    HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

  6. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 04 Jan 2013 Link to this post

    It worked when I put the viewer.dll in the bin directory. Then I also had to set Telerik.Reporting to copy local = true.
  7. Jules
    Jules avatar
    20 posts
    Member since:
    Jul 2005

    Posted 11 Feb 2013 Link to this post

    I'm having a similar issue. When I try to install my published application on another computer I get an error that says "Unable to install or run the application. The application requires that assembly Telerik.Windows.Controls Version 2012.3.1129.40 be installed in the Global Assembly Cache (GAC) first."

    My application is in WPF against .Net 4.5, and uses a reporting library that compiles against 4.5 as well. Both projects refer to Telerik Reporting 6.2.13.110, and the UI library uses Telerik. Windows.Controls 2012.3.1129.45. All assemblies are set with Copy Local = true, and the publish status is set to Include (Auto) or Include for all Telerik assemblies in the projects. The UI project uses Telerik.ReportViewer.Wpf 6.2.13.110.

    I know the ReportViewer requires Telerik.Windows.Controls, and I'm wondering if it requires the .40 version instead of the .45 version. Can I not use reporting in 4.5 yet?

    J
  8. Jules
    Jules avatar
    20 posts
    Member since:
    Jul 2005

    Posted 11 Feb 2013 Link to this post

    I switched the .net version to 4.0 and referenced only the 4.0 versions of the Windows controls, and now it installs. Annoying that the report viewer only works against a single version of .net. Can you update the naming scheme so it flects the version in it's version number, just like the only controls all do?

    Thanks,
    J
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 14 Feb 2013 Link to this post

    Hello Julia,

    There are no problems expected when using a WPF app that targets .NET 4.5 and RadControls for WPF built against .NET 4.5. I've just made a sample test and everything works correctly on my end, so I suspect you kept a reference to the RadControls for WPF 4.0 version somewhere.

    If you're still having problems, please run the fuslogvw (Assembly Binding Log Viewer) which would yield pointers where your project looks for the assemblies and which assemblies are being (trying to be) loaded.

    Regards,
    Steve
    the Telerik team

    HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

  10. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 14 Feb 2013 Link to this post

    I thought WPF client side reports only work in asp.net 4.0.  I think I read that in the docs
Back to Top
DevCraft banner