首页 文章

Sitecore错误:无法创建类型的实例:Sitecore.Form.Core.WffmActionHandler . 找不到匹配的构造函数

提问于
浏览
2

有没有人遇到过这个问题?基本上,我正在尝试将营销人员的Web表单从8.0-U3升级到8.0-U4(成功)到8.1初始版本(未成功) .

错误发生在更新安装过程中:http://upgrade/sitecore/admin/UpdateInstallationWizard.aspx

它说:

安装遇到严重错误 . 在联系Sitecore支持之前,此Sitecore安装不能用于测试或 生产环境 目的 . 确保下载并包含包含有关Sitecore安装的诊断信息的文件 .

Server Error in '/' Application.

Could not create instance of type: Sitecore.Form.Core.WffmActionHandler. No matching constructor was found.

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: Sitecore.Exceptions.ConfigurationException: Could not create instance of type: Sitecore.Form.Core.WffmActionHandler. No matching constructor was found.

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: 


[ConfigurationException: Could not create instance of type: Sitecore.Form.Core.WffmActionHandler. No matching constructor was found.]
   Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +272
   Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +131
   Sitecore.Events.EventSubscribers.Add(String eventName, XmlNode configNode) +545
   Sitecore.Events.Event.GetConfigSubscribers() +564
   Sitecore.Events.Event.RaiseEvent(String eventName, Object[] parameters) +338
   Sitecore.Data.DataProviders.Sql.SqlDataProvider.SetProperty(String parameterName, String value, CallContext context) +259
   Sitecore.Data.DataProviders.DataProvider.SetProperty(String name, String value, CallContext context, DataProviderCollection providers) +124
   Sitecore.Data.DataManager.SetProperty(String name, String value) +103
   Sitecore.Web.Authentication.TicketManager.IsTicketExpired(Ticket ticket, Boolean useProlongation) +330
   Sitecore.Web.Authentication.TicketManager.GetTicket(String ticketId, Boolean returnExpired) +93
   Sitecore.Web.Authentication.TicketManager.IsTicketValid(String ticketId) +37
   Sitecore.Shell.Web.ShellPage.IsLoggedIn(Boolean returnAfterLogin) +409
   Sitecore.Shell.Web.UI.SecurePage.OnLoad(EventArgs e) +22
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1073.0

2 回答

  • 0

    我能够解决这个问题 . 我重新安装了WFFM 8.1的更新包 . 但在此之前,我将WFFM 8.1-Initial版本的DLL和配置文件复制并粘贴到我的实例中,然后再进行更新运行 .

    Edited :根本原因,忘了用下面的补丁更新 Sitecore.Forms.config

    <handler type="Sitecore.Form.Core.WffmActionHandler, Sitecore.Forms.Core" method="OnWffmActionEventFired" > 
    <param name="actionManager" ref="/sitecore/wffm/wffmActionExecutor" /> </handler>
    
  • 3

    在我的情况下,我通过从clean-sitecore安装文件夹复制整个DLL修复,当更多挖掘它是谁是黑羊他们是

    • Sitecore.Forms.Core.dll

    • Sitecore.Forms.Custom.dll

    • Sitecore.Forms.Mvc.dll

    以上dll的版本不同 .

相关问题