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

ASP .NET runtime error: Could Not load file or assembly 'Telerik.Charting, Version 2.0.1.0

5 Answers 287 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 14 Apr 2009, 02:19 PM
Hello,
I'm receiving the following error after uninstalling RadControls_for_ASP.NET_AJAX_2008_1_515_trial.exe. We currently use the 2.0 controls , RadCalendar.Net2.dll, RadInput.Net2.dll, RadTreeView.Net2.dll.  I wanted to try the telerik AJAX controls and downloaded the above trial, back in the summer of 2008.  After experimenting with the tools, we decided to wait to implement any AJAX controls.  Yesterday I attemped to remove (uninstall) the Telerik AJAX and I now recieve the following error when compiling the website OR displaying a page.  Error    2    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 never updated the RAD controls that were included in my BIN file. those were never touched.  I created new pages without the AJAX components and it had worked just fine.  When I removed the AJAX controls, I receive the above error.   There are no references to Telerik.Charting in the project, there are no references to this in the GAC, there are no references to this in the Web.Config, there are no references in the BIN file, and as far as I can see there are no dependencies in the current RAD controls to telerik.charting,   there are no references in the temporary web files and/or cache, and there are no references to telerik.charting in the registry.  What am I missing?  why is the CLR runtime still attempting to locate this file?  Any help is appreciated.

5 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 15 Apr 2009, 08:28 AM
Hi Pete ,

This version of RadControls for ASP.NET AJAX installs the Telerik.Charting assembly into the GAC. The Telerik.Web.UI assembly refers to Telerik.Charting. So, when dropping a control from the ASP.NET AJAX suite on the page, the Telerik.Web.UI assembly is copied in the local Bin folder and due to the reference to the GAC-ed Telerik.Charting assembly, the following line is added to your web.config file:

<add assembly="Telerik.Charting, Version=2.0.1.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>

I would guess, you still have the Telerik.Web.UI assembly in your Bin folder, but after you have uninstalled RadControls for ASP.NET AJAX suite, the Telerik.Charting assembly is no more available and that leads to the error you get. To solve this -- just make sure you do not refer Telerik.Web.UI in your project and remove it from the Bin folder.

All the best,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pete
Top achievements
Rank 1
answered on 15 Apr 2009, 01:33 PM

Hello,

Telerik.Web.UI is not referenced anywhere in my project (config file or otherwise).  It is also not in my BIN directory or the GAC.  I've also done registry searches and it does not exist in the registry either.  I've have cleared all cache.

I seem to get the error on some pages within the project  on the very first line, at the page or control directive level, i.e. <%@ Page language="c#"  ....  i.e. I hover over the highlighted error and it gives me the Could not load assembly Telerik.Charting, v2.0.1.0...

I'm very perplexed, I've removed it from essentially all of my system.  Am I overlooking something? Or is this a Visual Studio 2008 bug?

Pete

Here is what is in my BIN directory:
Microsoft.Web.UI.WebControls.dll
RadCalendar.Net2.dll
RadCalendar.Net2.xml
RadInput.Net2.dll
RadInput.Net2.xml
RadPanelbar.Net2.dll
RadPanelbar.Net2.xml
RadTabStrip.Net2.dll
RadTabStrip.Net2.xml
RadTreeView.Net2.dll
RadTreeView.Net2.xml

They all have references to Telerik.WebControls which seems to be fine.

0
Pete
Top achievements
Rank 1
answered on 15 Apr 2009, 02:31 PM
Here is a stack trace:

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.

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=2.0.1.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=2.0.1.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' could not be loaded.

Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  c:\windows\microsoft.net\framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = W2VZ2D1K03\ASPNET
LOG: DisplayName = Telerik.Charting, Version=2.0.1.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763
 (Fully-specified)
LOG: Appbase = file:///D:/VMS/Development/Projects/VMS Web Site/
LOG: Initial PrivatePath = D:\VMS\Development\Projects\VMS Web Site\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\VMS\Development\Projects\VMS Web Site\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Telerik.Charting, Version=2.0.1.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/vms web site 6.2/bb82ff06/a50c60aa/Telerik.Charting.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/vms web site 6.2/bb82ff06/a50c60aa/Telerik.Charting/Telerik.Charting.DLL.
LOG: Attempting download of new URL file:///D:/VMS/Development/Projects/VMS Web Site/bin/Telerik.Charting.DLL.
LOG: Attempting download of new URL file:///D:/VMS/Development/Projects/VMS Web Site/bin/Telerik.Charting/Telerik.Charting.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/vms web site 6.2/bb82ff06/a50c60aa/Telerik.Charting.EXE.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/vms web site 6.2/bb82ff06/a50c60aa/Telerik.Charting/Telerik.Charting.EXE.
LOG: Attempting download of new URL file:///D:/VMS/Development/Projects/VMS Web Site/bin/Telerik.Charting.EXE.
LOG: Attempting download of new URL file:///D:/VMS/Development/Projects/VMS Web Site/bin/Telerik.Charting/Telerik.Charting.EXE.

Stack Trace:

[FileNotFoundException: 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.]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
   System.Reflection.Assembly.Load(String assemblyString) +25
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: 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.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +70
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +185
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +350
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
   System.Web.Compilation.BuildManager.CompileCodeDirectories() +525
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +448

[HttpException (0x80004005): 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.]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +644

[HttpException (0x80004005): 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.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279
0
Ves
Telerik team
answered on 17 Apr 2009, 07:01 AM
Hello Pete,

I am a bit puzzled by this. There is something in the project, that refers to Telerik.Charting, we will need to find what it is. As you are sure, that Telerik.Web.UI and Telerik.Charting assemblies are not present anymore, there are no references to them (in the project file or in web.config file) and that all the Register directives, referring to Telerik.Charting have been removed, I can only suggest that you clean the ASP.NET cache again i.e. after removing the Register directives. If that does not seem to help, please zip the entire project (leaving out data files and any sensitive information) and attach it to a formal support ticket, so that we can review it locally.

All the best,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pete
Top achievements
Rank 1
answered on 17 Apr 2009, 03:10 PM
I had to reinstall the RadControls_for_ASP.NET_AJAX_2008_1_515_trial.exe. As soon as I did the problem went away.  This is not the desirable outcome I was looking for. I should be able to remove (uninstall) this trial and still develop with RAD2.net dll's.  When I get some time I'll try this again, although I don't look forward to it.
Tags
Ajax
Asked by
Pete
Top achievements
Rank 1
Answers by
Ves
Telerik team
Pete
Top achievements
Rank 1
Share this question
or