Failed to load file or assembly after updating DevExpress

I took my hair off of it and hopefully it will be something simple that I'm too fat to work for myself.

We have an ASP.NET site (IIS7.5, Server 2008R2) that uses the wonderful DevExpress ASP modules. Everything worked fine until I had a bright idea for updating modules from 10.1.4 to 10.1.7. Since then, the site has been generating intermittent but regular errors, which it:

Could not load file or assembly 'DevExpress.Data.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 

All .aspx files have similar register tags, for example:

 <%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %> 

I updated the VS2010 project using my own DevExpress utility utility. There is no link to v10.1.4 anywhere in the code - I checked the .aspx, web.config files, etc., and the last .DLL is also on the web server. I even moved the site to a completely new, virgin server, but the error still occurs. Specifying the subversion number and public key in the register tag is no different.

I iisreset , cleared the temporary files, rebooted, etc., all to no avail. It is not surprising that the error does not reproduce - sometimes it happens, sometimes it is not. Can anyone help me out?

0
source share
2 answers

Make sure the application bin folder does not contain our old builds. Also, find your project under the substring "10.1.4.0" and make sure that this line is not displayed. If this does not help, you should be sure that your application does not reference the dll, which refers to our old builds or is located in the bin folder. Finally, a good idea is to clear the temporary folder of ASP.NET files ("C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files") ... I hope this is useful.

+4
source

In the solutionExplorer: switched to the file view and changed

 CopyLocal = true 

for all DevExpress assemblies in both Server and ServerGenerated projects . This solves the problem for me. Could you try and let me know if this helps?

+5
source

Source: https://habr.com/ru/post/1411334/


All Articles