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

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

8 Answers 188 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 31 Dec 2012, 10:05 PM
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?

8 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 03 Jan 2013, 03:24 PM
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!

0
danparker276
Top achievements
Rank 2
answered on 04 Jan 2013, 12:42 AM
.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

0
Accepted
Steve
Telerik team
answered on 04 Jan 2013, 01:11 PM
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!

0
danparker276
Top achievements
Rank 2
answered on 05 Jan 2013, 01:32 AM
It worked when I put the viewer.dll in the bin directory. Then I also had to set Telerik.Reporting to copy local = true.
0
Jules
Top achievements
Rank 1
answered on 11 Feb 2013, 07:51 PM
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
0
Jules
Top achievements
Rank 1
answered on 11 Feb 2013, 08:07 PM
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
0
Steve
Telerik team
answered on 14 Feb 2013, 03:52 PM
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!

0
danparker276
Top achievements
Rank 2
answered on 14 Feb 2013, 04:22 PM
I thought WPF client side reports only work in asp.net 4.0.  I think I read that in the docs
Tags
General Discussions
Asked by
danparker276
Top achievements
Rank 2
Answers by
Steve
Telerik team
danparker276
Top achievements
Rank 2
Jules
Top achievements
Rank 1
Share this question
or