迁移后无法删除页面V11-> V12

问题描述 投票:1回答:1

我现在正在使用Kentico V12。

昨天我们将Kentico V11更新为V12。所有步骤都成功,但是现在,当我们要删除页面时,我们会在日志中收到此错误消息:

  • 系统已删除的附件
  • 内容DELETEDOC

消息:[SqlGenerator.GetAutomaticQuery]:类名'CMS.AlternativeUrl'不存在。

异常类型:CMS.DataEngine.DataClassNotFoundException堆栈跟踪:在CMS.DataEngine.DataClassInfoProvider.GetDataClassInfo(字符串名称,布尔throwIfNotFound)在CMS.DataEngine.SqlGenerator.GetAutomaticQuery(String queryFullName)处在CMS.DataEngine.QueryInfoProvider.GetQueryInfoInternal(String queryName)在CMS.DataEngine.QueryInfoProvider.GetQueryInfo(字符串名称,布尔throwException)在CMS.DataEngine.DataQueryBase1.GetConnectionStringName() at CMS.DataEngine.DataQueryBase1.get_ConnectionStringName()在CMS.DataEngine.Query.QueryBatch。<> c.b__3_0(IDataQuery q)在System.Linq.Lookup2.Create[TSource](IEnumerable1处,函数2 keySelector, Func 2 elementSelector,IEqualityComparer1 comparer) at System.Linq.GroupedEnumerable3.GetEnumerator()在CMS.DataEngine.Query.QueryBatch.d__3.MoveNext()在CMS.DataEngine.Query.QueryBatch.Execute()在CMS.DataEngine.ObjectDependenciesRemover.RemoveObjectDependenciesByQuery(IEnumerable`1个查询)

您是否知道这可能是根本原因?在我的本地代码中,它可以正常工作,但不能在生产环境中使用。

您能帮我吗?

非常感谢!

kentico
1个回答
1
投票

似乎并非所有修补程序都已正确应用。检查并比较本地数据库和生产上的Hotfix版本。您可以使用以下SQL查询来做到这一点:

SELECT [KeyValue] FROM [CMS_SettingsKey] WHERE [KeyName] = N'CMSHotfixVersion'

如果它们不同,则需要按照Kentico文档的说明进行apply it to the production database

© www.soinside.com 2019 - 2024. All rights reserved.