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

Telerik Chart works locally and fails on server

1 Answer 66 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 2
Christopher asked on 18 Jan 2010, 03:06 PM
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.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 20 Jan 2010, 07:55 AM
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.
Tags
Chart (Obsolete)
Asked by
Christopher
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or