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
Please follow the instructions bellow:
If you use WebApplication:
- Open your project in Visual studio.
- In Solution Explorer navigate to References.
- Remove Telerik.Web.UI and Telerik.Web.Design from the references.
- Add Telerik.Web.UI again. Make sure when adding the assembly to point the newest version of the dll.
If you use Web Site:
- Copy the latest Telerik.Web.UI.dll to the \bin folder of your web site.
- Open your site in Visual studio.
- In Solution Explorer, open web.config of your site.
- 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).
<
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

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

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.

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.
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