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

Prometheus V2 - Charting DLL dependency?

26 Answers 952 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris Williams
Top achievements
Rank 1
Chris Williams asked on 10 Oct 2007, 12:51 AM
I updated my app to the latest Prometheus build (Q2 2007). 

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

Sort by
0
Sebastian
Telerik team
answered on 10 Oct 2007, 07:09 AM
Hello Chris,

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
0
Mark
Top achievements
Rank 1
answered on 13 Dec 2007, 01:50 PM
I have the same problem - I am not using charting and the charting dll is showing up as a GAC reference. Despite removing it from the reference UI in VS 2005, it keeps showing up. I don't mind including a reference to the bin if I must - I just don't want to require every box where I put this site to have to install prometheus. When I try doing that, I still get the GAC reference (VS 2005 ignores the file I browsed too). I havent tried manually mucking with web.config, but I will if that will allow me to reference the file rather than the GAC.

0
Ves
Telerik team
answered on 14 Dec 2007, 03:06 PM
Hi Mark,

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
0
hacker
Top achievements
Rank 1
answered on 17 Dec 2007, 03:02 PM
I have the same problem, and removing it from the web.config fixes the issue.  But every once in a while, it reappears. 

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

Shawn
0
Mark
Top achievements
Rank 1
answered on 17 Dec 2007, 08:25 PM
It doesn't help. I am able to put a copy of the charting dll in my web bin directory to get around having to install to the gac.Would rather not do that if possible.
0
Ves
Telerik team
answered on 20 Dec 2007, 12:07 PM
Hi guys,

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,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jeff
Top achievements
Rank 1
answered on 01 Jan 2008, 06:19 PM
I have experienced the same issue. I opened a support ticket regarding this and the initial response I recieved was to remove any references. This did not fix the issue for me either. Every once in a while the charting dll reference reappears in the web config. I also noted in the support ticket that the chart dll is referenced in the web xml file. I have gotten around the errors by just including it in the bin, whether it is used or not.

Jeff
0
Patrick Stovall
Top achievements
Rank 1
answered on 20 Feb 2008, 07:34 PM
We are also having difficulties with the Charting dll.  It was GAC'd, we can't remove it.  We can't create a bin reference.  TFS Build fails because it doesn't have the controls loaded on that machine.  We have tried to remove it and it reappears always.  I'm very concerned about this approach.  We will need to deploy to 100's or webservers and having this in the GAC is not an option. 

Please provide a hotfix to get everything out of the GAC!
0
Robert LeGood
Top achievements
Rank 1
answered on 20 Feb 2008, 08:27 PM
Add me to the list on this one.  If you've moved to deploying everything in a single assembly..... ***deploy everything in a single assembly!!!!***
0
Doug Beard
Top achievements
Rank 2
answered on 21 Feb 2008, 02:24 PM
I also have this problem.  Any Prometheus controls that are added via the Toolbox to an ASPX page results in an assembly reference to the Charting dll being added to the webconfig erroneously.

0
Jeff
Top achievements
Rank 1
answered on 21 Feb 2008, 08:26 PM
I have had many hours of frustration with this issue. I created an issue, and found a possible workaround. So far, I have not had any other problems. I am posting the steps I performed below, that I sent out to Telerik support. I would recommend being cautious with this because it involves changing the registry and forcing a removal from the GAC. This may also only work with my particular pc.
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."
0
Ves
Telerik team
answered on 22 Feb 2008, 05:35 PM
Hi Jeff,

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:
<add assembly="Telerik.Charting, Version=1.7.1.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>

  • 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.
If you have installed RadControls "Prometheus" using the automatic installer (.exe file) Telerik.Charting has been installed in GAC. Either way you should not experience any issues during development.

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.
Hope this helps.

Best wishes,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
aea13
Top achievements
Rank 1
answered on 28 Feb 2008, 03:29 PM
HALLELUJAH!  :)

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.
0
Dave
Top achievements
Rank 1
answered on 06 Mar 2008, 09:53 PM
The latest Prometheus build (released on 2/25/08) appears to have fixed this issue.  I only had to add one reference to my project - the Telerik.Web.UI assembly.  I deleted the Telerik.Charting dll from my bin folder and removed any reference to Telerik.Charting in my web.config.  I redeployed my app and everything appears to be running just fine.  Thankfully it looks like they removed that dependency.  That was kinda weird that Telerik ever required us to put the Telerik.Charting dll in the Bin folder - even if you're not using their Charting control at all. 
0
Robert LeGood
Top achievements
Rank 1
answered on 06 Mar 2008, 10:14 PM
Dave,

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.
0
Ted
Top achievements
Rank 1
answered on 12 May 2008, 04:02 PM
I also having this issue, but I'm not using Prometheius.  I'm using the RadControls for ASPNET AJAX Q1 2008.

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?
0
Ves
Telerik team
answered on 13 May 2008, 04:20 PM
Hi Ted,

"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
0
Ted
Top achievements
Rank 1
answered on 13 May 2008, 05:15 PM

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.

0
Steve Elsbury
Top achievements
Rank 1
answered on 19 May 2008, 07:06 PM
I did a 'Find in files' action,. looking for 'charting' anywhere in my solution, and it came up with the following:

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.

0
Rory
Top achievements
Rank 1
answered on 19 May 2008, 07:17 PM
Do you have any old Radcontrols Demos installed in your programs list. Make sure you uninstall all their Demos. Then try deleting the references
0
Ted
Top achievements
Rank 1
answered on 19 May 2008, 07:43 PM

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.

0
Steve Elsbury
Top achievements
Rank 1
answered on 19 May 2008, 08:24 PM
Rory - No, no demos installed - just RadControls for ASPNET Ajax Q1 2008

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.
0
Ted
Top achievements
Rank 1
answered on 19 May 2008, 08:36 PM
The guys from telerik can confirm, but I don't think the XML file is related to your issue.

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.
0
Steve Elsbury
Top achievements
Rank 1
answered on 19 May 2008, 08:47 PM
Deleted the registry key but still cannot remove it from the GAC. I get an error message saying it is required by other applications and cannot be removed.
0
Ted
Top achievements
Rank 1
answered on 19 May 2008, 08:53 PM
Then it is still referenced in the registry somewhere.  Do a search from the top of your registry.  The key will have "Install" or "Installer" referenced somewhere in it.
0
Steve Elsbury
Top achievements
Rank 1
answered on 20 May 2008, 06:13 PM
That did the trick Ted - thanks.
Tags
General Discussions
Asked by
Chris Williams
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Mark
Top achievements
Rank 1
Ves
Telerik team
hacker
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
Patrick Stovall
Top achievements
Rank 1
Robert LeGood
Top achievements
Rank 1
Doug Beard
Top achievements
Rank 2
aea13
Top achievements
Rank 1
Dave
Top achievements
Rank 1
Ted
Top achievements
Rank 1
Steve Elsbury
Top achievements
Rank 1
Rory
Top achievements
Rank 1
Share this question
or