
I reference all of the Telerik DLLs through the BIN directory, not the GAC. Today, after I upgraded, one of my testers said he couldn't run the app because the file Telerik.Charting could not be found.
I'm not using Charting anywhere in the app, nor is the Charting assemblyincluded in the app's references.
Is there some dependency on the Charting assembly for the other controls that make it necessary to distribute Charting?
Chris Williams
26 Answers, 1 is accepted
The Telerik.Charting.dll is shipped with RadControls "Prometheus" as a separate assembly apart from Telerik.Web.UI.dll. Can you please check whether your tester has reference to the chart assembly somewhere in his test project which can cause the compilation error? Also verify inside the test site there is no code to RadChart requiring the chart assembly.
Best regards,
Stephen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

Please, remove the reference to Telerik.Charting.dll from your Web.config file and let us know if the issue remains.
Regards,
Ves
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

Not sure why the reference keeps getting added because I am not using the Charting component.
Shawn

Telerik.Web.UI.dll references Telerik.Charting.dll. So while developing you may remove Telerik.Charting.dll from the Bin folder, but it will re-appear each time you drag a Telerik.Web.UI control from the toolbox on a page, even this control is not RadChart. It will also appear when the application is built. You can just leave it there and remove it once you are ready to deploy the application.
Best wishes,
Instantly find answers to your questions at the new Telerik Support Center

Jeff

Please provide a hotfix to get everything out of the GAC!



Hopefully this helps, or at least leads someone to a better "fix".
Jeff
Quote from support ticket:
"I might have gottent the reference to version 1.7.1 removed. I had to remove 2 references from the registry at the keys listed below. Then run the command line to remove from the gac:
gacutil /uf Telerik.Charting,Version=1.7.1.0,Culture=neutral,PublicKeyToken=d14f3dcc8e3e8763 (I retyped this, so it may not be exact).
HKEY_CURRENT_USER\Software\Microsoft\Installer\Assemblies
HKEY_CURRENT_USER\Software\Microsoft\Installer\Assemblies\Global
So far this seems to work. I can not remove the reference to version 1.7.0 because it is part of the winforms installation. But this is not showing up in my web project.
My suspicion is that there may be something not quite correct with the installer, not uninstalling the previous version (1.7.1) when installing 1.8.
I hope this helps."
Thanks for the input. Indeed, your approach solves the issue.
Here is some background for everyone concerned:
Telerik.Web.UI assembly references Telerik.Charting assembly. So each time you drag a "Prometheus" control from the toolbox to a page or build a page that has controls from Telerik.Web.UI, Visual Studio will perform one of the following two steps:
- If you have Telerik.Charting installed in GAC you will get the following line in the web.config file:
- If you do not have Telerik.Charting installed in GAC you will get Telerik.Charting.dll copied to the Bin folder of your web application.
However, if you have Telerik.Charting in GAC, when you deploy your website you might get the following error:
Could not load file or assembly 'Telerik.Charting, Version=1.7.1.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' or one of its dependencies. The system cannot find the file
specified.
The reason for this is obvious - web.config file refers to Telerik.Charting assembly but it is not present in the GAC on the server and it has not been deployed with your web site. Now you can choose one of the following:
- If you use RadChart "Prometheus" -- copy Telerik.Charting.dll to the Bin folder of your website.
- If you do not use RadChart "Prometheus" -- remove the above mentioned line from the web.config file in your website.
Best wishes,
Ves
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

I only had a single reference in the Global key, not the one above it, but deleting it from there and running "gacutil /uf Telerik.Charting" worked.
Did a quick build on an app and no more errors :) THANK YOU.


May want to check your machine. The install puts the Charting DLL in the GAC which means you don't have to have it in your bin folder.
Having the assembly installed in the GAC is what we're complaining about as it becomes a nightmare to deploy to multiple locations if you ALSO have to perform a GAC install.
Ideally Charting should have been rolled inside the main assembly if they were serious about moving to a single assembly deployment.

I can't remove Telerik.Charting from the GAC using the gacutil due to a Windows Installer requirement that it remains.
I'm not using the charting feature so I don't want to add it to my bin folder, or continually have to remove it from the Web.Config since it just keeps getting added back everytim I drag a new telerik control to the app.
Is there a fix for this?
"Prometheus" is just the former name of RadControls for ASP.NET AJAX, so in the context of this problem -- you can consider the proposed solutions for RadControls "Prometheus".
Telerik.Web.UI assembly references Telerik.Charting assembly and Visual Studio works this way -- either adds the line in web.config or adds the referenced assembly to the bin folder. Still, you can uninstall Telerik.Charting from GAC following the procedure described by Jeff in his message from 2/21/2008. Then, if you remove it from its original folder, Visual Studio will not be able to resolve it and when adding another control, it will not be added to Bin folder.
All the best,
Ves
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

In case anyone else runs into this issue -
I didn't have references to any Telerik controls in the registry keys mentioned in Jeff's posting above, but I took a chance and migrated and deleted a registry key from the following path -
[HKEY_CLASSES_ROOT\Installer\Assemblies\C:|Program Files|Common Files|Telerik|Charting|2.0.0|Telerik.Charting.dll]
I'm now able to remove the reference in the GAC to the Telerik.Charting assembly.
Thanks.

blah\Bin\Telerik.Web.UI.xml(10320): <member name="M:Telerik.Web.UI.RadChart.AddChartSeries(Telerik.Charting.ChartSeries)">
How do I get rid of this reference from the web.ui.xml file? If I remove the charting reference from the web.config, it just adds itself back in again. Each time I deploy the web, I have to manually edit the web.config to remove this reference.


It's probably being added back from a reference in the GAC.
If it does exist there, make sure you've removed any references in your registry (be sure to do a backup first), and then run the gacutil to uninstall it. Examples are posted in this thread.
Good luck. This one's a pest.

Ted - there is one in the GAC, and it is version 2 - but I cannot understand why the web gui assembly mentions it in the xml file.

I had this same exact issue as you, and once I removed the reference to telerik.charting from my registry, I was able to remove it from the GAC. The installer puts a "lock" on it so the file can't easily be removed.
Since it has been gone from the GAC, I've not had a problem with it showing up in my web.config.


