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

Could not load file or assembly 'Telerik.Web.UI, Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does no

5 Answers 1542 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Puleng
Top achievements
Rank 1
Puleng asked on 07 Dec 2010, 09:40 AM

Hi I get an error "Could not load file or assembly 'Telerik.Web.UI, Version=2010.2.713.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)", and I am running Telerik.Web.UI Version = 2010.31109.35 which is the one I am referencing but it kkeps on refering to the old verion 2010.2.713.35, will anyone please help with the error.

Regards 

5 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 07 Dec 2010, 11:47 AM
Hello Puleng,

Please follow the instructions bellow:

If you use WebApplication:
  1. Open your project in Visual studio.
  2. In Solution Explorer navigate to References.
  3. Remove Telerik.Web.UI and Telerik.Web.Design from the references.
  4. Add Telerik.Web.UI again. Make sure when adding the assembly to point the newest version of the dll.

If you use Web Site:
  1. Copy the latest Telerik.Web.UI.dll to the \bin folder of your web site.
  2. Open your site in Visual studio.
  3. In Solution Explorer, open web.config of your site.
  4. Edit references to the telerik's assembly.  Do not use fully qualified name. In <pages><controls> tag, you should have right assembly reference (see the code-snippets bellow).
Instead of:
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI,
   Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

You should have:
<add tagPrefix="telerik" assembly="Telerik.Web.UI" namespace="Telerik.Web.UI"/>

Kind regards,
Vasil
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Dean Killam
Top achievements
Rank 1
answered on 23 Dec 2010, 03:46 PM

We are getting the exact same issue.

I've completely removed the 2010.2.713.35 version from the machine.  I've made sure that the version of the dll is the correct verion; check the gac and the old version is not listed.

The problem seems to happen when a radcombo box is populated with data.

here is the error code.  This is really getting frustrating, there doesn't seem to be any logical explanation as to why this old verion is referenced.

System.IO.FileLoadException was unhandled by user code
  Message="Could not load file or assembly 'Telerik.Web.UI, Version=2010.2.713.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="App_Web_lb-4xfnt"
  FileName="Telerik.Web.UI, Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
  FusionLog="=== Pre-bind state information ===\r\nLOG: User = TRY-20-3229\\ASPNET\r\nLOG: DisplayName = Telerik.Web.UI, Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Lear/LQTSIII/lqts.web.ui/\r\nLOG: Initial PrivatePath = C:\\Lear\\LQTSIII\\lqts.web.ui\\bin\r\nCalling assembly : (Unknown).\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: Using application configuration file: C:\\Lear\\LQTSIII\\lqts.web.ui\\web.config\r\nLOG: Using host configuration file: C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet.config\r\nLOG: Using machine configuration file from c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\r\nLOG: Post-policy reference: Telerik.Web.UI, Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4\r\nLOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/lqts.web.ui/75feb9e2/d8bcec5c/Telerik.Web.UI.DLL.\r\nLOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/lqts.web.ui/75feb9e2/d8bcec5c/Telerik.Web.UI/Telerik.Web.UI.DLL.\r\nLOG: Attempting download of new URL file:///C:/Lear/LQTSIII/lqts.web.ui/bin/Telerik.Web.UI.DLL.\r\nWRN: Comparing the assembly name resulted in the mismatch: Minor Version\r\nERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.\r\n"
  StackTrace:
       at PrMain.PopulatePage()
       at PrMain.Page_Load(Object sender, EventArgs e) in c:\Lear\LQTSIII\lqts.web.ui\PrMain.aspx.cs:line 76
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException:

 
 
 

Line 603:
Line 604:        }
Line 605:    }
Line 606: #endregion
Line 607:
 

Source File: c:\Lear\LQTSIII\lqts.web.ui\PrMain.aspx.cs    Line: 605

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI, Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' could not be loaded.

=== Pre-bind state information ===
LOG: User = TRY-20-3229\ASPNET
LOG: DisplayName = Telerik.Web.UI, Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
 (Fully-specified)
LOG: Appbase = file:///C:/Lear/LQTSIII/lqts.web.ui/
LOG: Initial PrivatePath = C:\Lear\LQTSIII\lqts.web.ui\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Lear\LQTSIII\lqts.web.ui\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.Web.UI, Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/lqts.web.ui/75feb9e2/d8bcec5c/Telerik.Web.UI.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/lqts.web.ui/75feb9e2/d8bcec5c/Telerik.Web.UI/Telerik.Web.UI.DLL.
LOG: Attempting download of new URL file:///C:/Lear/LQTSIII/lqts.web.ui/bin/Telerik.Web.UI.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

 

Stack Trace:

[FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.2.713.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)]
   PrMain.PopulatePage() in c:\Lear\LQTSIII\lqts.web.ui\PrMain.aspx.cs:605
   PrMain.Page_Load(Object sender, EventArgs e) in c:\Lear\LQTSIII\lqts.web.ui\PrMain.aspx.cs:76
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

0
Dean Killam
Top achievements
Rank 1
answered on 23 Dec 2010, 04:22 PM
I've been doing more experimentation, and here's what's happening.

I delete the telerik reference from the bin directory of the website, removing it from the solution;  I then add a reference to the new 2010.3.1215.35 version of the controls;  go the the bin directory on the file system, it shows that it is the 2010.3.1215.35 version of the dll.

I then rebuild the solution.

If I look at the version of the file in the bin directory, it has revered to the 2010.2.713.35 version, even though it is no longer installed on the system.

What would cause this to revert to an old version, even though the new one should be referenced, and the .refresh file is actually pointing at the new version.
0
Dean Killam
Top achievements
Rank 1
answered on 23 Dec 2010, 04:38 PM
Yet more information.


If I go to Build => rebuild solution, it puts the old 2010.2.713.35 of the dll into the bin directory;  When I click on the debug arrow to launch the site into debug mode, it puts the 2010.3.1215.35 into the bin directory.
0
Vasil
Telerik team
answered on 28 Dec 2010, 04:51 PM
Hello Puleng,

I am not sure why different versions are added when build solution and debug it. But you can try to search for Telerik.Web.UI.dll in your hard drive and delete this assemblies with the old version. Check if there are some installed in the GAC as well.

Best wishes,
Vasil
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Puleng
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Dean Killam
Top achievements
Rank 1
Share this question
or