表单设计器中的Sitecore WFFM服务器错误

时间:2014-08-15 21:59:48

标签: sitecore web-forms-for-marketers

任何人都可以帮我解决这个错误吗?当我尝试为Sitecore的营销人员Web表单打开表单设计器时,我得到了它

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

我试过踩过它,但我无法弄清楚。

1 个答案:

答案 0 :(得分:1)

我在执行升级之前已经看过这个。在我的情况下,网站中缺少文件。

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

最终我们发现包中的文件不在网站中。

n.b。由于某种原因,重新安装包不起作用。