Telerik Chart works locally and fails on server

Thread is closed for posting
2 posts, 0 answers
  1. Christopher
    Christopher avatar
    3 posts
    Member since:
    Dec 2008

    Posted 18 Jan 2010 Link to this post

    Hello good people,

    Telerik Chart works locally and fails on server.

    Localhost page displays the chart with info from database. Server returns this:

    Parser Error Message: Could not load file or assembly 'Telerik.Charting, Version=2.0.1.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' or one of its dependencies. The system cannot find the file specified.

    I added the charting dll as a reference and manually found it and added it to the bin folder (after adding it as a reference seemed to do nothing). Both times I uploaded it to the server. It still doesn't play nice.

    I do not have a References folder where I can update the Copy Local property (as mentioned in another thread on deploying reporting). I could not find anything on deploying charting (this grid?).

    - - - UPDATE

    RE: http://blogs.telerik.com/blogs/posts/08-08-29/visual_studio_2008_intellisense_and_telerik_charting.aspx

    Seems from this, and other things I've read, that I need to have the Ajax RadControls installed on the Server somehow. Is this true? I thought the purpose of Telerik controls is that they went with the web applicaiton and worked independent of the server.

    I'm also misunderstanding MANY notes about the GAC and whether or not this DLL needs to be part of it or if it can stand alone in the BIN folder of this web app. How do I add this to the GAC? If I add it to the GAC, will it solve this problem?

    - - - UPDATE 2

    RE:
    http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/prometheus-v2-charting-dll-dependency.aspx
    http://blogs.telerik.com/blogs/posts/08-08-29/visual_studio_2008_intellisense_and_telerik_charting.aspx
    http://dotnetslackers.com/ASP_NET/re-133018_Visual_Studio_2008_Intellisense_and_Telerik_Charting.aspx

    If I remove (comment out) the reference from the web.config, I get new errors on the server, encouraging me to remove the reference to the informix database and the using statement for the informix database until both the local and server copies fail to work.

    Nice.

    Thank you for your help.

  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 20 Jan 2010 Link to this post

    Hi Christopher,

    Let me start with a small clarification -- Telerik.Charting.dll is part or RadControls for ASP.NET AJAX Q1 2008 SP1, which is rather old now. Still, I believe you have your reasons to use it, so my answer will target this version, let me know if this is not the case.

    The RadControls setup installs the Telerik.Charting assembly in machine's GAC. When you create a web site and drag RadChart to the design surface, Visual Studio will add a reference to Telerik.Charting in web.config file. When deploying the web site you will need to copy Telerik.Charting.dll to the web site Bin folder. Note, that each version of Telerik.Web.UI will work with a specific version of Telerik.Charting, so you need to copy the very same version of the assembly as the one mentioned in web.config file ex. 2.0.1.0. Then you can remove the web.config registration.

    Alternatively, you can keep the web.config registration and install Telerik.Charting to the server's GAC. Installing manually an assembly in GAC is as simple as dropping the assembly in c:\Windows\Assembly folder.

    Finally, I would like to note, that as of RadControls for ASP.NET AJAX Q3 2008 Telerik.Charting.dll does not exist as a separate file, so you do not have to manage such problems.

    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top