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

Could not load assembly 'Telerik.Charting, verion=1.0.2.0'

6 Answers 902 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jafin
Top achievements
Rank 2
Jafin asked on 05 Jun 2007, 05:05 AM
This is really weird.

I am using the latest RadControls and Reporting 1.0 SP1.
On my dev PC I do not receive the error.
When I move the files to production I get the error:

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Charting, Version=1.0.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Charting, Version=1.0.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' could not be loaded.

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = Telerik.Charting, Version=1.0.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763
(Fully-specified)
LOG: Appbase = file:///D:/Inetpub/wwwroot/
LOG: Initial PrivatePath = D:\Inetpub\wwwroot\bin
Calling assembly : Telerik.Reporting, Version=1.1.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be.
===

I don't have Telerik.Charting.dll that came with Reporting in my bin folder as it causes duplicate namespace errors with pages that use RadChart.dll


Any clues as to how to resolve this?  (I've cleared the bin/gac on both machines and mirrored the contents, still no go).

Thanks,
Jason

6 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 05 Jun 2007, 02:13 PM
Hello Jafin,

You need to put the Telerik.Charting.dll in the application's Bin folder on the production server. You can get it from C:\Program Files\Common Files\Telerik\Charting\1.0.2 on your machine.
 

Regards,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
NightFlash
Top achievements
Rank 1
answered on 20 Jun 2007, 09:04 AM
I had the same problem, but indeed when you copy the dll from program files the problem is fixed. Is there any reason why he doesn't add the dll when you add the reference Telerik.Charting? (I'm not that good in references :) )

I really like the telerik forum, great support!
0
Hrisi
Telerik team
answered on 20 Jun 2007, 10:51 AM
Hi Rob,

Try to set Telerik.Charting reference property "Copy Local" to True (you can see that in the attached file). This should copy the file automatically to the app and add a reference in the project when you add the Chart item to the report.

 
Best wishes,
Hrisi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
NightFlash
Top achievements
Rank 1
answered on 20 Jun 2007, 10:54 AM
thanks, great support like always!:)
0
Christopher
Top achievements
Rank 2
answered on 15 Jan 2010, 11:10 PM
Hello,

RE: set copy=local

Where/how? I cannot find a property editing ability in VS for the dll.

My local web site in VS 2005 (.NET 2.0) works fine, but on the server gives the config error:

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.

In VS, right click web site > Add Reference > .NET tab, select Telerik.Charting > [OK]

Do the same thing from the Bin folder.
The charting dll neverappears in the Bin folder.

I found the Telerik.Charting.dll and manually added it to the bin folder, uploaded it to the web server. Doesn't fix it.

Okay, it's in the Bin folder, now how/where do I set copy=local?

I cannot find an Edit Reference Dialogue box, and http://www.telerik.com/ClientsFiles/055857_CopyLocal.JPG is not what my website looks like in VS.

I've got a folder structure like this:

[-] website
 ..[ ] App_Data
 ..[ ] Bin
 ....... Telerik.Charting.dll
 ....... Telerik.Web.UI.dll
 .. [-] Default.aspx
etc...

And no way to edit any properties on the charting dll to copy=local!

If I select the dll, I only have TWO properties available: File name and Full path.

I cannot set copy=local in the web.config.

I cannot find any Edit References dialogue anywhere in VS menus.

How can I tell the server to go ahead and use it?

Thank you for your help.

0
Steve
Telerik team
answered on 18 Jan 2010, 09:14 AM
Hello Christopher,

The Telerik.Charting assembly is no longer required by Telerik Reporting product. Please review the Deploying Applications using Telerik Reporting help article for required assemblies and steps when deploying. If your question is about the RadChart for ASP.NET AJAX control, please open a ticket in the correct forum category.

All the best,
Steve
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
General Discussions
Asked by
Jafin
Top achievements
Rank 2
Answers by
Svetoslav
Telerik team
NightFlash
Top achievements
Rank 1
Hrisi
Telerik team
Christopher
Top achievements
Rank 2
Steve
Telerik team
Share this question
or