Asp.Net MVC View Сбой визуализации при указанном аргументе вышел за пределы допустимых значений (Имя параметра: значение)

Я использую RazorGenerator MVC и RazorGenerator MsBuild для компиляции моих HTML-файлов. Эти плагины прекомпилируют наши HTML-файлы. На определенной странице мы получаем ошибку в методе View Render: указанный аргумент находится вне диапазона допустимых значений в параметре name: value.

Это мой callstack:

[ArgumentOutOfRangeException: Specified argument was out of the range of 

valid values.
Parameter name: value]
   System.Web.UI.WebControls.Unit..ctor(Int32 value) +3066885   ASP._Views_ZoekArtikelFrm_TilesViewArtikelen_VB_VS_VB_TVC_VB_HB_VB2_VS_VB_HB_PictureEdit_cshtml.<Execute>b__1_0(BinaryImageEditSettings settings) in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\TilesViewArtikelen_VB_VS_VB_TVC_VB_HB_VB2_VS_VB_HB_PictureEdit.cshtml:15
       DevExpress.Web.Mvc.UI.ExtensionsFactory.CreateExtension(Action`1 method) +67
       ASP._Views_ZoekArtikelFrm_TilesViewArtikelen_VB_VS_VB_TVC_VB_HB_VB2_VS_VB_HB_PictureEdit_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\TilesViewArtikelen_VB_VS_VB_TVC_VB_HB_VB2_VS_VB_HB_PictureEdit.cshtml:11
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_ZoekArtikelFrm_TilesViewArtikelen_VB_VS_VB_TVC_VB_HB_VB2_VS_0_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\TilesViewArtikelen_VB_VS_VB_TVC_VB_HB_VB2_VS_0.cshtml:23
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_ZoekArtikelFrm_TilesViewArtikelen_VB_VS_VB_TVC_VB_HB_VB2_VS_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\TilesViewArtikelen_VB_VS_VB_TVC_VB_HB_VB2_VS.cshtml:11
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_ZoekArtikelFrm_TilesViewArtikelen_VB_VS_VB_TVC_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\TilesViewArtikelen_VB_VS_VB_TVC.cshtml:106
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_ZoekArtikelFrm_TilesViewArtikelen_VB_VS_1_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\TilesViewArtikelen_VB_VS_1.cshtml:14
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_ZoekArtikelFrm_TilesViewArtikelen_VB_VS_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\TilesViewArtikelen_VB_VS.cshtml:11
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_ZoekArtikelFrm_RootControl_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\RootControl.cshtml:58
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_ZoekArtikelFrm_Index_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\ZoekArtikelFrm\Index.cshtml:12
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_MainWindow_Index_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\MainWindow\Index.cshtml:147
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58
       ASP._Views_MainWindow_TotalRefresh_cshtml.Execute() in C:\Users\Jelle\Documents\Trunk\Psh\Psh.Asp.Net.Webshop\obj\CodeGen\Views\MainWindow\TotalRefresh.cshtml:0
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
       RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +273
       System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +291
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +56
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +52
       System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginInvokeAction>b__3() +198
       System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__5(IAsyncResult asyncResult) +100
       System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
       System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
       System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +11
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
       System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +45
       System.Web.Mvc.<>c.<BeginExecute>b__151_2(IAsyncResult asyncResult, Controller controller) +13
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
       System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
       System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
       System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
       System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +28
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
       System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9873789
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159

Знаете ли вы решение этой проблемы в RazorGenerator MVC?

С наилучшими пожеланиями, Желе

0 ответов

Другие вопросы по тегам