I wanted to upgrade to the latest Telerik library and am getting
Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.415.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)
I know I can accomplish this by removing and re-adding my references to the project, then rebuilding. But how can I upgrade an already installed production server (the website was already published there by publishing from VS)? I tried just replacing the .DLL/.XML files in the bin folder, and then updating the web.config file ... but I still get the error above. I believe the "old" telerik version numbers are somehow compiled into the published website. Is it possible to upgrade the telerik DLL without recompiling/republishing?
Thanks!
Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.415.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)
I know I can accomplish this by removing and re-adding my references to the project, then rebuilding. But how can I upgrade an already installed production server (the website was already published there by publishing from VS)? I tried just replacing the .DLL/.XML files in the bin folder, and then updating the web.config file ... but I still get the error above. I believe the "old" telerik version numbers are somehow compiled into the published website. Is it possible to upgrade the telerik DLL without recompiling/republishing?
Thanks!
7 Answers, 1 is accepted
0
Hello Jay,
I think that the information from the resources linked below will help you address the errors you currently receive:
http://www.telerik.com/help/aspnet-ajax/introduction-design-time-troubleshooting.html
http://www.telerik.com/help/aspnet-ajax/introduction-upgrading.html
Best regards,
Sebastian
the Telerik team
I think that the information from the resources linked below will help you address the errors you currently receive:
http://www.telerik.com/help/aspnet-ajax/introduction-design-time-troubleshooting.html
http://www.telerik.com/help/aspnet-ajax/introduction-upgrading.html
Best regards,
Sebastian
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0

Jay
Top achievements
Rank 1
answered on 16 Mar 2011, 05:47 PM
Hi,
Those articles show how to upgrade to the latest Telerik librairies inside Visual Studio. I want to know how to upgrade an already deployed web application, without recompiling or republishing.
Thanks,
Jay
Those articles show how to upgrade to the latest Telerik librairies inside Visual Studio. I want to know how to upgrade an already deployed web application, without recompiling or republishing.
Thanks,
Jay
0
Hi Jay,
Replacing the assemblies and the references to them on your production server should be sufficient. Let me know if I am missing something.
Regards,
Sebastian
the Telerik team
Replacing the assemblies and the references to them on your production server should be sufficient. Let me know if I am missing something.
Regards,
Sebastian
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0

Jay
Top achievements
Rank 1
answered on 16 Mar 2011, 06:37 PM
That is what I did ... but then I get the error:
Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.415.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)
It appears that when the web app is compiled/published, it has tied to it the old version number. So when I simply replace the .DLLs in the bin folder, and change the web.config, the error above is seen.
Jay
0
Hello Jay,
You probably have an old assembly reference in your project (including the fully qualified name of the 2010.1.415.35 Telerik.Web.UI.dll or Telerik.Web.Design.dll) and this generates the exception. You should either remove it or included bindingRedirect in web.config which points to the new version (to be on the safe side).
Another reason for this error is that you have your own compiled assembly in the deployed application which wraps or references the 2010.1.415.35 version of our AJAX controls. In this case you need to reference the new version and recompile that assembly.
Regards,
Sebastian
the Telerik team
You probably have an old assembly reference in your project (including the fully qualified name of the 2010.1.415.35 Telerik.Web.UI.dll or Telerik.Web.Design.dll) and this generates the exception. You should either remove it or included bindingRedirect in web.config which points to the new version (to be on the safe side).
Another reason for this error is that you have your own compiled assembly in the deployed application which wraps or references the 2010.1.415.35 version of our AJAX controls. In this case you need to reference the new version and recompile that assembly.
Regards,
Sebastian
the Telerik team
0

Jay
Top achievements
Rank 1
answered on 21 Mar 2011, 10:42 PM
"You probably have an old assembly reference in your project ... You should either remove it or include bindingRedirect in web.config"
In my project I have a reference to the Telerik.Web.UI.dll .... I just want to avoid removing / re-adding the reference and then re-publishing every time the Telerik.Web.UI.dll is updated. I just want the web app to use whatever version of telerik is installed in the bin folder. If I add a reference to your DLL to my project, are you saying this is not possible?
Or are you saying the only way to accomplish this is by using the bindingRedirect in web.config?
thx
In my project I have a reference to the Telerik.Web.UI.dll .... I just want to avoid removing / re-adding the reference and then re-publishing every time the Telerik.Web.UI.dll is updated. I just want the web app to use whatever version of telerik is installed in the bin folder. If I add a reference to your DLL to my project, are you saying this is not possible?
Or are you saying the only way to accomplish this is by using the bindingRedirect in web.config?
thx
0
Hello Jay,
To make sure that at compile/runtime the references to the Telerik AJAX assemblies will be set accordingly (when you upgrade the dlls in the /bin or GAC), use appropriate bindingRedirects in the web.config file. Thus you will only need to replace the assemblies and modify the version in the bindingRedirect to match that of the new dlls.
Regards,
Sebastian
the Telerik team
To make sure that at compile/runtime the references to the Telerik AJAX assemblies will be set accordingly (when you upgrade the dlls in the /bin or GAC), use appropriate bindingRedirects in the web.config file. Thus you will only need to replace the assemblies and modify the version in the bindingRedirect to match that of the new dlls.
Regards,
Sebastian
the Telerik team