Ошибка сервера Sitecore WFFM в конструкторе форм

Может ли кто-нибудь помочь мне с этой ошибкой? Я получаю это, когда пытаюсь открыть конструктор форм для веб-форм Sitecore для маркетологов.

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

Я пытался пройти через это, но я не мог понять это.


person amklose    schedule 15.08.2014    source источник
comment
Это произошло после обновления?   -  person Martin Davies    schedule 16.08.2014
comment
Я не думаю, что он был обновлен в последнее время, но я проверил проект из подрывной деятельности.   -  person amklose    schedule 18.08.2014
comment
Итак, возможно, в вашем исходном контроле отсутствуют файлы. Смотрите мой ответ ниже.   -  person Martin Davies    schedule 18.08.2014


Ответы (1)


Я видел это раньше после выполнения обновления. В моем случае на сайте отсутствовали файлы.

Проблема была устранена путем разархивирования установочного пакета WFFM и сравнения файлов с тем, что было в решении Sitecore.

В конце концов мы обнаружили, что в пакете есть файлы, которых нет на сайте.

н.б. Переустановка пакета почему-то не помогла.

person Martin Davies    schedule 18.08.2014
comment
Спасибо. Были некоторые расхождения между нашей бета-версией, живой и локальной средой. - person amklose; 02.09.2014