Prometheus V2 - Charting DLL dependency?

27 posts, 0 answers
  1. Chris Williams
    Chris Williams avatar
    63 posts
    Member since:
    Oct 2004

    Posted 09 Oct 2007 Link to this post

    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
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 10 Oct 2007 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark
    Mark avatar
    3 posts
    Member since:
    Nov 2007

    Posted 13 Dec 2007 Link to this post

    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.

  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 14 Dec 2007 Link to this post

    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
  6. hacker
    hacker avatar
    78 posts
    Member since:
    Nov 2006

    Posted 17 Dec 2007 Link to this post

    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
  7. Mark
    Mark avatar
    3 posts
    Member since:
    Nov 2007

    Posted 17 Dec 2007 Link to this post

    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.
  8. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 20 Dec 2007 Link to this post

    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
  9. Jeff
    Jeff avatar
    33 posts
    Member since:
    Sep 2006

    Posted 01 Jan 2008 Link to this post

    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
  10. Patrick Stovall
    Patrick Stovall avatar
    22 posts
    Member since:
    Jan 2008

    Posted 20 Feb 2008 Link to this post

    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!
  11. Robert LeGood
    Robert LeGood avatar
    28 posts
    Member since:
    Dec 2007

    Posted 20 Feb 2008 Link to this post

    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!!!!***
  12. Doug Beard
    Doug Beard avatar
    52 posts
    Member since:
    Jan 2008

    Posted 21 Feb 2008 Link to this post

    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.

  13. Jeff
    Jeff avatar
    33 posts
    Member since:
    Sep 2006

    Posted 21 Feb 2008 Link to this post

    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."
  14. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 22 Feb 2008 Link to this post

    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
  15. aea13
    aea13 avatar
    10 posts
    Member since:
    Dec 2007

    Posted 28 Feb 2008 Link to this post

    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.
  16. Dave Durose
    Dave Durose avatar
    44 posts
    Member since:
    Jan 2008

    Posted 06 Mar 2008 Link to this post

    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. 
  17. Robert LeGood
    Robert LeGood avatar
    28 posts
    Member since:
    Dec 2007

    Posted 06 Mar 2008 Link to this post

    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.
  18. Ted
    Ted avatar
    7 posts
    Member since:
    Feb 2008

    Posted 12 May 2008 Link to this post

    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?
  19. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 13 May 2008 Link to this post

    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
  20. Ted
    Ted avatar
    7 posts
    Member since:
    Feb 2008

    Posted 13 May 2008 Link to this post

    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.

  21. Steve Elsbury
    Steve  Elsbury avatar
    5 posts
    Member since:
    Dec 2007

    Posted 19 May 2008 Link to this post

    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.

  22. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 19 May 2008 Link to this post

    Do you have any old Radcontrols Demos installed in your programs list. Make sure you uninstall all their Demos. Then try deleting the references
  23. Ted
    Ted avatar
    7 posts
    Member since:
    Feb 2008

    Posted 19 May 2008 Link to this post

    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.

  24. Steve Elsbury
    Steve  Elsbury avatar
    5 posts
    Member since:
    Dec 2007

    Posted 19 May 2008 Link to this post

    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.
  25. Ted
    Ted avatar
    7 posts
    Member since:
    Feb 2008

    Posted 19 May 2008 Link to this post

    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.
  26. Steve Elsbury
    Steve  Elsbury avatar
    5 posts
    Member since:
    Dec 2007

    Posted 19 May 2008 Link to this post

    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.
  27. Ted
    Ted avatar
    7 posts
    Member since:
    Feb 2008

    Posted 19 May 2008 Link to this post

    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.
  28. Steve Elsbury
    Steve  Elsbury avatar
    5 posts
    Member since:
    Dec 2007

    Posted 20 May 2008 Link to this post

    That did the trick Ted - thanks.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017