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

Could not load file or assembly 'Telerik.Charting, Version=2.0.4.0,

4 Answers 154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 08 Aug 2010, 01:22 AM
Good Day All

I have a project , in my machine it works fine. The version of .NEt is 2.0 and the telerik is 2008 version. Now i have hosted the application on my website and i am receiving the error


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

Source Error:

Line 4:  <%@ Register Src="Advetr3.ascx" TagName="Advetr3" TagPrefix="uc4" %>
Line 5:  <%@ Register Src="Advetr4.ascx" TagName="Advetr4" TagPrefix="uc5" %>
Line 6:  <%@ Register Assembly="Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763"
Line 7:      Namespace="Telerik.Charting" TagPrefix="telerik" %>
Line 8:  <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

and i have a master page and l tried to locate the shown above line , but i could not find it. most of the time when i receive this error in my previous applications, i just go and remove the entry in the web config. but now this points to a asp.net page or master page. I have checked the default content page for this line but i did not find it. and i searched the whole project for this and have not find it.

I must mention that i have two version of Telerik. But in this project i used only one version. In my machine i have 2010 and 2008. but now when i run this on my development machine , its fine , but when i deploy the website with its bin directories to a paid domain i receive an error.

My live website where i get this error is

www.Vuyiswamaseko.com


Thanks

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 09 Aug 2010, 05:11 PM
Hello Vuyiswa,

The error states "Could not load file or assembly 'Telerik.Charting, Version=2.0.4.0", that is there is no such assembly available in the Bin folder or in the machine GAC.

As the solution works locally, I suppose Telerik.Charting is installed in your local system's GAC, but not in the server's GAC. If adding Telerik.Charting to server's GAC is not an option, you can add it to the web site local Bin folder.

Hope this helps.

Greetings,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vuyiswa
Top achievements
Rank 2
answered on 09 Aug 2010, 05:41 PM
Good Day Admin

I was able to get rid of the error , by copying the telerik.chart dll into my bin directory, i have another strange error

Server Error in '/VuyiswaMasekoForum' Application.

Could not load file or assembly 'Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken


on the same website. I have Telerik.Web.UI dll in my bin but i receive this error.

Thanks
0
Accepted
Pavlina
Telerik team
answered on 10 Aug 2010, 12:32 PM
Hello Vuyiswa,

The cause of the error is a reference to a version of Telerik.Web.UI in the web.config that is different from the version of the deployed assembly. Please update the reference in the web.config to match the version of the deployed assembly and let me know how it goes.

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vuyiswa
Top achievements
Rank 2
answered on 10 Aug 2010, 03:22 PM
Thank you , Admin

its resolved now.
Tags
General Discussions
Asked by
Vuyiswa
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Vuyiswa
Top achievements
Rank 2
Share this question
or