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

[Solved] Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies

5 Answers 448 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jennifer
Top achievements
Rank 1
Jennifer asked on 23 Feb 2010, 05:27 PM

My application and controls work fine on my local machine, the local dev server, and the remote dev server. I put the dlls in the bin directory and not the GAC to minimize the issues as the application goes through testing on different servers. I moved it to the next step - the link server and it stopped working. 

Server Error in '/' Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Key_statistics.aspx.cs" Inherits="Default3" %>
Line 2:  
Line 3: <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>Line 4:  
Line 5:  

Source File: /nchs/nhanes/bibliography/key_statistics.aspx    Line: 3

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

I searched the forums and added httphandlers, updated, removed, and added version numbers, put "fresh" versions of the dlls in the server's bin directory, but nothing changed.
I followed Atana's blog post - http://blogs.telerik.com/AtanasKorchev/Posts/08-07-18/Web_Resources_demystified_Part_3_Troubleshooting.aspx
and Installed Firebug and when I browse the page, I get a 500 internal error, but nothing like the errors the blog post outlines...I attached a screenshot.

What to do next?
Thanks!
Jen

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Feb 2010, 11:59 AM
Hi Jennifer,

After the project fails in runtime this means that your web site is not referencing properly the Telerik.Web.UI.dll assembly. You can check if it is located in the bin folder of your web site. If deployed in GAC check your web.config file for a reference of Telerik.Web.UI.dll within the <assemblies> tag. Also make sure the version is correct.

Sincerely yours,
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
Jennifer
Top achievements
Rank 1
answered on 24 Feb 2010, 04:21 PM

I didn't use the GAC - I put the dlls in the bin folder. In the folder are:
Telerik.Web.UI.xml
Telerik.Web.UI.dll.refresh
Telerik.Web.UI.dll

The httphandlers section of my web.config looks like this:

 

<

 

httpHandlers>

 

<

 

remove verb="*" path="*.asmx" />

 

<

 

add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />

 

<

 

add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions" validate="false"/>

 

<

 

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.619.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

 

<

 

add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false" />

 

<

 

add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false" />

 

</

 

httpHandlers>

 

 

 

I've tried with the version number and as a short name - without the version number - and it didn't make a difference either way.

Jen

0
Pavlina
Telerik team
answered on 25 Feb 2010, 03:56 PM
Hello Jennifer,

It seems that you have not registered correctly the Telerik.Web.UI.dll and it cannot be referenced at runtime. If it is a Web Site then right click on the solution and select Property Pages. Under the References node you should check if reference the Telerik.Web.UI.dll in the bin folder. 
 
Additionally, you could check the following resources:
http://www.telerik.com/help/aspnet-ajax/installaddtoglobalassemblycache.html
http://www.telerik.com/help/aspnet-ajax/installdeployingonsharedhosting.html
http://www.telerik.com/help/aspnet-ajax/installtroubleshootingproductionserver.html

All the best,
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
Jennifer
Top achievements
Rank 1
answered on 01 Mar 2010, 07:07 PM
Looking at the Property Pages, References tab, it says Reference Name=Telerik.Web.UI; Type=BIN; Version=Auto update.

Reviewing the other links you sent, the only other thing thing that I can think of to change is the permissions that ASP.Net has - which I've been told - the organization that hosts the webservers will not do.

Is there anything else I can check in my application before I go there?

Thanks!
Jen
0
Pavlina
Telerik team
answered on 04 Mar 2010, 11:35 AM
Hi Jennifer,

Please examine the following forum thread, which discuss a similar problem and let me know if it helps:
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/could-not-load-file-or-assembly-telerik-web-ui-version-2009-2-826-35.aspx

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.
Tags
General Discussions
Asked by
Jennifer
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Jennifer
Top achievements
Rank 1
Share this question
or