0

Kentico.AcceleratedMobilePages 附加组件是否适用于 Kentico 11?

我将它安装在版本 11 的站点上,它会引发以下错误。

Server Error in '/' Application.

Could not load type 'CMS.DataEngine.AbstractInfoProvider`1' from assembly 'CMS.DataEngine, Version=11.0.0.0, Culture=neutral, PublicKeyToken=834b12a258f213f9'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.TypeLoadException: Could not load type 'CMS.DataEngine.AbstractInfoProvider`1' from assembly 'CMS.DataEngine, Version=11.0.0.0, Culture=neutral, PublicKeyToken=834b12a258f213f9'.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[TypeLoadException: Could not load type 'CMS.DataEngine.AbstractInfoProvider`1' from assembly 'CMS.DataEngine, Version=11.0.0.0, Culture=neutral, PublicKeyToken=834b12a258f213f9'.]
   Kentico.AcceleratedMobilePages.AmpFilterInfoProvider.GetAmpFilters() +0
   Kentico.AcceleratedMobilePages.CheckStateHelper.GetFilterState() +246
   Kentico.AcceleratedMobilePages.AmpFilter.OnFilterActivated(ResponseOutputFilter filter, String& finalHtml) +69
   CMS.OutputFilter.ResponseOutputFilter.FilterResponse(String finalHtml) +1266
   CMS.OutputFilter.ResponseOutputFilter.Close() +19
   System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +691
   System.Web.HttpResponse.FilterOutput() +117
   System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +61
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +91


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2106.0
4

2 回答 2

0

您可能正在使用 Kentco 10 支持的 Kentico.AccelratedMobilePages.1.0.3。

对于 Kentico 11,您需要安装 nuget 包Kentico.AcceleratedMobilePages.11.0.0

于 2018-02-14T11:09:14.650 回答
0

看起来 AbstractInfoProvider 已被删除并替换为 AbstractInfoProvider

因此该模块需要更新才能在 11 上运行。

https://devnet.kentico.com/documentation/api-changes/kentico-11/24447

于 2018-02-13T20:47:29.013 回答