2013-05-03 2 views
1

У меня возникла проблема с тем, чтобы XForms работали в блоке на EPiServer 7. Это веб-формы, а не MVC.блок episerver, не работающий с xforms

XForms работает, когда я помещаю их на обычную страницу, но когда я использую их в блоках, я получаю исключение null. Смотри ниже.

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.ArgumentNullException: Value cannot be null. 
Parameter name: virtualPath 

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: 

[ArgumentNullException: Value cannot be null. 
Parameter name: virtualPath] 
System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +11610798 
EPiServer.Web.TemplateControlLoader.LoadControl(HttpContextBase httpContext, Type renderType, Object renderData, TemplateControl templateControl, String tag, Action`2 bindDataAction) +214 
EPiServer.Web.TemplateControlLoader.LoadControl(HttpContextBase httpContext, IContentData contentData, TemplateControl templateControl, String tag) +223 
EPiServer.Cms.Shell.MoveToPlatform.PersonalizationContentControlResolver.ResolveContentControls(ContentArea contentArea, Control parentControl, String tag, String itemCssClass, String itemTagName, Boolean enableEditFeatures) +870 
EPiServer.Web.PropertyControls.PropertyContentAreaControl.GetContentRenderers(Boolean enableEditFeatures) +598 
EPiServer.Web.PropertyControls.PropertyContentAreaControl.CreateContentAreaControls(Boolean enableEditFeatures) +130 
EPiServer.Web.PropertyControls.PropertyDataControl.CreateChildControls() +103 
System.Web.UI.Control.EnsureChildControls() +182 
EPiServer.Web.WebControls.Property.CreateChildControls() +600 
System.Web.UI.Control.EnsureChildControls() +182 
System.Web.UI.Control.PreRenderRecursiveInternal() +60 
System.Web.UI.Control.PreRenderRecursiveInternal() +222 
System.Web.UI.Control.PreRenderRecursiveInternal() +222 
System.Web.UI.Control.PreRenderRecursiveInternal() +222 
System.Web.UI.Control.PreRenderRecursiveInternal() +222 
System.Web.UI.Control.PreRenderRecursiveInternal() +222 
System.Web.UI.Control.PreRenderRecursiveInternal() +222 
System.Web.UI.Control.PreRenderRecursiveInternal() +222 
System.Web.UI.Control.PreRenderRecursiveInternal() +222 
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4201 

Я попытался сравнить с шаблонами сплаймов, но не нашел разницы, которые должны нарушить это.

Я также пытался отлаживать, но он не останавливается ни на каких точках останова, которые могли бы дать какую-либо информацию.

Кто-нибудь знает, в чем проблема? Благодарен за любую помощь.

ответ

1

Я нашел решение этой проблемы, но не почему проблема возникла. Я предполагаю, что episerver кэшировал средство визуализации и попытался получить доступ к более старой версии, которой не было.

Решение было то, что средство визуализации для блока, казалось, было повреждено в некотором роде. То, что я сделал, это удалить webcontrol, который был средством визуализации, войти в режим редактирования и получить сообщение об ошибке «no renderer не найден для блока, а затем создать его снова.

Итак, проблема в том, что проблема не была с xforms модуль

Смежные вопросы