在表单设计器中出现Sitecore WFFM服务器错误



有谁能帮我解决这个错误吗?当我试图打开Sitecore的Web Forms for Marketers的表单设计器

时,我得到了它。
Server Error in '/' Application.
Cannot implicitly convert type 'System.Web.UI.Control' to 'Sitecore.Web.UI.XmlControls.XmlControl'. An explicit conversion exists (are you missing a cast?)
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.CodeDom.Compiler.CompilerException: Cannot implicitly convert type 'System.Web.UI.Control' to 'Sitecore.Web.UI.XmlControls.XmlControl'. An explicit conversion exists (are you missing a cast?)
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:

[CompilerException: Cannot implicitly convert type 'System.Web.UI.Control' to 'Sitecore.Web.UI.XmlControls.XmlControl'. An explicit conversion exists (are you missing a cast?)]
Sitecore.CodeDom.Compiler.CSharpCompiler.AssertResults(String sourceFile, CompilerResults results) +108
Sitecore.CodeDom.Compiler.CSharpCompiler.Compile(String sourceFile, String code, String assemblyFile, StringCollection referencedAssemblies) +176
Sitecore.Web.UI.XmlControls.FolderControlSource.BuildControlAssembly(XmlNode fileNode, String& assemblyKey, String& assemblyFile) +380
Sitecore.Web.UI.XmlControls.FolderControlSource.GetControlAssembly(String controlName, String& assemblyKey) +179
Sitecore.Web.UI.XmlControls.FolderControlSource.ResolveType(String controlName, Boolean includeDynamicTypes) +46
Sitecore.Web.UI.XmlControls.ControlSource.GetControlType(String namespacePrefix, String controlName, String mode, Boolean includeDynamicTypes) +114
Sitecore.Web.UI.XmlControls.ControlFactory.GetControlType(String controlName, String mode, Boolean includeDynamicTypes) +244
Sitecore.Web.UI.XmlControls.ControlFactory.GetControl(Control parent, String controlName, String mode, Object[] properties, AllowGenericControl allowGeneric) +40
Sitecore.Web.UI.XmlControls.XmlControl.AddControl(String name, String mode, Control pa rent, String placeholderID, String[] properties) +41
Sitecore.Web.UI.XmlControls.Forms_FormDesigner_a_195.Initialize() +7084
Sitecore.Web.UI.XmlControls.XmlControl..ctor() +72
Sitecore.Web.UI.XmlControls.Forms_FormDesigner_a_195..ctor() +9
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) +0
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +1170
Sitecore.Reflection.ReflectionUtil.CreateObject(Type type) +91
Sitecore.Web.UI.XmlControls.ControlFactory.GetControl(Control parent, String controlName, String mode, Object[] properties, AllowGenericControl allowGeneric) +53
Sitecore.Web.UI.XmlControls.ControlFactory.GetControl(String controlName, String mode, Object[] properties, AllowGenericControl allowGeneric) +25
Sitecore.Web.UI.XmlControls.ControlFactory.GetControl(String controlName) +59
Sitecore.Shell.DefaultPage.OnInit(EventArgs e) +88
System.Web.UI.Control.InitRecursive(Control namingContainer) +143
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1477

我以前在执行升级后看到过这种情况。在我的情况下,网站上有丢失的文件。

通过解压缩WFFM安装包,并将这些文件与Sitecore解决方案中的文件进行比较,可以解决这个问题。

最终我们发现包中有些文件不在网站上。

的被害者。

最新更新