YSOD Could not load file or assembly CMS.DataEngine - after Kentico 11.0.0 upgrade to Kentico 12 SP1

↘锁芯ラ 提交于 2020-04-30 10:11:04

问题


Just finished upgrading Kentico 11.0.0 with MVC, to Kentico 12 SP1 using https://docs.kentico.com/k12sp/installation/upgrading-to-kentico-12

No issues during upgrade.

Kentico CMS is coming up fine on local IIS and Azure app.

MVC site came up fine on local IIS.

But staging MVC site is showing this error in Azure app:

Server Error in '/' Application. Could not load file or assembly 'CMS.DataEngine, Version=11.0.0.0, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


回答1:


Had to delete old files when publishing

Warning

Backup your Kentico CMS published version's media folder before doing this. That is where media library files are stored. Database only contains a reference. Once published and you confirm CMS is up, you will see a yellow exclamation mark next to every image in media library application. Restore the folder from backup so that Media Library files get synced up.




回答2:


I've found that several DLLs from kentico 11 were left in the bin folder and that was the reason for this error while VS project compiled successfully without any issue:

Once I deleted them all started working fine and the website loaded successfully.



来源:https://stackoverflow.com/questions/61035875/ysod-could-not-load-file-or-assembly-cms-dataengine-after-kentico-11-0-0-upgra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!