2013-05-03 50 views
1

我有一些問題,得到的XForms在塊工作在EPiServer 7.的WebForms和MVC不工作。episerver塊不使用XForms

當我將它們放在普通頁面上時,XForms正常工作,但當我在塊上使用它們時,我得到一個空異常。見下文。

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,進入編輯模式,並得到錯誤「找不到渲染器的塊,然後再次創建它。

所以問題似乎沒有與xforms模塊。