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发布于 2018-02-14 04:47:29
看起来AbstractInfoProvider已被移除并替换为AbstractInfoProvider
因此需要更新该模块才能在11上工作。
https://devnet.kentico.com/documentation/api-changes/kentico-11/24447
发布于 2018-02-14 19:09:15
您可能正在使用Kentco10中支持的Kentico.AccelratedMobilePages.1.0.3。
对于Kentico 11,您需要安装nuget包Kentico.AcceleratedMobilePages.11.0.0
https://stackoverflow.com/questions/48774309
复制相似问题