Could not load file or assembly Telerik.Web.UI

1 Answer 3 Views
Ajax General Discussions
Nancy
Top achievements
Rank 1
Iron
Iron
Nancy asked on 12 Jun 2025, 11:18 PM

Hi, I recently received a new laptop at work.  I was eventually able to compile and run both of my 2 applications in localhost, and deploy one of them to Dev and Prod.  However, I am having problems deploying my 2nd application. 

Again, it works fine in localhost.  When I deploy to the Dev environment, I get the error:

Could not load file or assembly 'Telerik.Web.UI, Version=2018.1.117.45, 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)

The version my reference points to is 2018.2.516.45.  So I don't know where the 2018.1.117.45 version is coming from, or why it is attempting to load this version.

Yes, I KNOW that this is an old version. If need be, I can probably upgrade to a newer version.  But if I can't figure out the version mis-match now, I think I will have the same problem with a newer version.  

Any help is appreciated.  

Thanks!

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 13 Jun 2025, 02:02 PM

Hello Nancy,

Based on the description sounds like the development environment still contains some files referencing the previous version.

When deploying the application I would assume the web.config, assemblies, and code files are copied over carrying the latest version you configured, so there must be something else left on the dev environment. Could you please check for a file called licenses.licx on the dev machine? If you find it, you can open it with an editor and read the contexts. It's clear text with entries referencing the Telerik versions. You can either remove the file or delete the contents, this should fix the error.

If it's not the licenses.licx file, then I would double check the web.config after deployment and verify the references in there. 

Also worth noting that the additional libraries such as the Telerik Document Processing Libraries (DPL) that are name as Telerik.Windows.Documents.{xyz}.dll are tied to the major versions of the Telerik controls.

The first two segment in the versions represent the major version, the third segment is the date and the last segment is the Target framework. If the Telerik UI for ASP.NET AJAX is version 2018.2.xxx.yy then the DPL versions should also be the same. They cannot be on version 2018.1.xxx.yy.

I would also do a Global search in the project files located in the Dev environment for the version 2018.1.117 to see if there is any usage. 

Please give my suggestions from above a try and let us know how it goes.

Regards,
Attila Antal
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Nancy
Top achievements
Rank 1
Iron
Iron
commented on 13 Jun 2025, 06:03 PM

Hi Attila,

I tried deployments both with deleting the .licx file, and deleting plus excluding it.  Both still got the same error. 

Following is the Telerik stuff I have in the Web.Config. I don't see anything resembling 2018.

What do you mean by "DPL"?

Where else in the solution could there be 2018.1.117.45?


<httpHandlers>
  <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
  <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
  <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
  <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
  <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</httpHandlers>

<handlers>
  <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
  <add name="Telerik.Web.UI.DialogHandler.axd_*" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
</handlers>

Tags
Ajax General Discussions
Asked by
Nancy
Top achievements
Rank 1
Iron
Iron
Answers by
Attila Antal
Telerik team
Share this question
or