YSOD无法加载文件或程序集CMS.DataEngine-在Kentico 11.0.0升级到Kentico 12 SP1之后 [英] YSOD Could not load file or assembly CMS.DataEngine - after Kentico 11.0.0 upgrade to Kentico 12 SP1
问题描述
Kentico CMS在本地IIS和Azure应用程序上运行良好.
Kentico CMS is coming up fine on local IIS and Azure app.
MVC站点在本地IIS上运行良好.
MVC site came up fine on local IIS.
但是暂存MVC站点在Azure应用中显示此错误:
But staging MVC site is showing this error in Azure app:
"/"应用程序中的服务器错误. 无法加载文件或程序集 'CMS.DataEngine,版本= 11.0.0.0,文化=中性, PublicKeyToken = 834b12a258f213f9'或其依赖项之一.这 定位的程序集的清单定义与程序集不匹配 参考. (来自HRESULT的异常:0x80131040)
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)
推荐答案
发布时必须删除旧文件
警告
在执行此操作之前,备份您的Kentico CMS发布版本的媒体文件夹.那就是存储媒体库文件的地方.数据库仅包含参考.发布后,如果确认CMS已启动,则媒体库应用程序中每个图像旁边都会显示一个黄色的感叹号.从备份还原文件夹,以便同步媒体库文件.
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.
这篇关于YSOD无法加载文件或程序集CMS.DataEngine-在Kentico 11.0.0升级到Kentico 12 SP1之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!