Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brian Milinski 42 posts 165 karma points
    Oct 26, 2016 @ 22:13
    Brian Milinski
    0

    Umbraco Forms Error

    Hi,

    I am getting an error when submitting a large form. The form has multiple fields and I have recently upgraded to Umbraco Forms 4.3.3.

    Here is the log file:

    2016-10-26 21:13:34,232 [P4084/D2/T166] WARN umbraco.macro - Error loading partial view macro (View: ~/Views/MacroPartials/InsertUmbracoForm.cshtml). Exception: System.Web.HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'. ---> System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Collections.Generic.Dictionary2[System.String,System.String]'. at ASP._Page_Views_Partials_Forms_FieldTypes_fieldtype_fileupload_cshtml.Execute() in d:\home\site\wwwroot\Views\Partials\Forms\Fieldtypes\FieldType.FileUpload.cshtml:line 11 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at ASP._Page_Views_Partials_Forms_Form_cshtml.Execute() in d:\home\site\wwwroot\Views\Partials\Forms\Form.cshtml:line 86 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>cDisplayClass21.1e(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.

    Any help on this would be greatly appreciated. There are multiple required fields and four file upload fields on the form if that helps give any insight into this error. The form worked just fine without validation, but once validation was added, there were issues when hitting submit.

    Thanks, Brian

  • Brian Milinski 42 posts 165 karma points
    Oct 27, 2016 @ 16:31
    Brian Milinski
    0

    This was caused by making a "Caption Field" a "Mandatory" field, this throws the above error in case anyone else runs into this in the future. This was by accident, and I thought the error may be handled a little more gracefully than this by Umbraco. A nuance.

    Cheers, Brian

Please Sign in or register to post replies

Write your reply to:

Draft