Copied to clipboard

Flag this post as spam?

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


  • Ben McKean 272 posts 549 karma points
    Apr 01, 2016 @ 14:19
    Ben McKean
    0

    Umbraco Forms error log : Error loading partial view macro (View: ~/Views/MacroPartials/InsertUmbracoForm.cshtml)

    Hi,

    I've getting the following for a live site. The path looks odd (and wrong) to me, has anybody had anything similar or know a fix?

    2016-03-31 00:58:17,054 [9] 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.InvalidOperationException: The partial view '~/Views/Partials/Forms\Standard' was not found or no view engine supports the searched locations. The following locations were searched:
    ~/Views/Partials/Forms\Standard
       at System.Web.Mvc.PartialViewResult.FindView(ControllerContext context)
       at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
       at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
       at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)
       at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)
       at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
       at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)
       at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)
       at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)
       at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
       at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)
       at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)
       at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
       at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
       at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerAsyncWrapper.<>c__DisplayClassa.<EndProcessRequest>b__9()
       at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass4.<Wrap>b__3()
       at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)
       at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap(Action action)
       at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerAsyncWrapper.EndProcessRequest(IAsyncResult result)
       at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
       at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
       at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)
       at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
       at System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
       at System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter)
       at System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues)
       at System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper htmlHelper, String actionName, String controllerName, Object routeValues)
       at ASP._Page_Views_MacroPartials_InsertUmbracoForm_cshtml.Execute() in c:\Development\14-03-2016\Views\MacroPartials\InsertUmbracoForm.cshtml:line 10
       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 System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
       at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
       at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
       at Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult)
       at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content)
       at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, INode node)
       at umbraco.macro.LoadPartialViewMacro(MacroModel macro)
       at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
    
  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 01, 2016 @ 14:49
    Warren Buckley
    0

    Hello Ben,
    That is odd, have you created any forms named Standard?

    Can you show me the contents of the following file please: \Views\MacroPartials\InsertUmbracoForm.cshtml

    As it should be trying to find a form based on a GUID as an alternative override. So it seems your Form ID is set to Standard?

    Have you been pragmatically using the APIs of Forms to try and create Forms or similar?

    Does this fail for all forms or for a very specific form?

    Also how is the macro used, inside a grid cell, inside a RTE or directly on a template or view?

    Hopefully together we can help figure this out.

    Thanks,.
    Warren

  • Ben McKean 272 posts 549 karma points
    Apr 01, 2016 @ 14:58
    Ben McKean
    0

    Contents of InsertUmbracoForm is.

    @inherits Umbraco.Web.Macros.PartialViewMacroPage
    
    
    
    @if (Model.MacroParameters["FormGuid"] != null)
    {
        var s = Model.MacroParameters["FormGuid"].ToString();
        var g = new Guid(s);
    
        Html.RenderAction("Render", "UmbracoForms", new {formId = g});
    }
    

    The error is just appearing in the log file. There are no forms called Standard and no custom API stuff with the forms from what I can see (I inherited the site). The forms implementation is fairly simple and standard.

    The forms are inserted in a Grid.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 01, 2016 @ 15:06
    Warren Buckley
    0

    So if this only appears in the logs.
    Does the form correctly render on the page as expected in the correct place in the grid & successfully submit etc ?

    Does this happen for all forms in the site and is it only seen on the live/production server or are you seeing this same problem on other environments such as development your local machine?

  • Ben McKean 272 posts 549 karma points
    Apr 01, 2016 @ 16:24
    Ben McKean
    0

    The forms works correctly and fine on the site. There 3, pretty basic forms.

    It's just an error message I noticed appearing in the logs.

    Is there a way to tell which form or page is causing the error in the message?

  • Ben McKean 272 posts 549 karma points
    Apr 01, 2016 @ 16:24
    Ben McKean
    0

    The logs are from production server. Not checked other environments.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 01, 2016 @ 18:21
    Warren Buckley
    0

    Hi Ben, No not currently from the logs, I have just got a current task from my sprint that is to improve log messages with more contextual information such as the form etc which may be caught in this updated version coming.

    But I would recommend trying to diagnose the issue on other environments or your local machine to see if you see the same error in the message, if not then it suggests something specific with the production environment.

    If you can replicate, then we can try and find out further information on steps to reproduce the problem in order to help you out.

    Thanks,
    Warren

  • Ben McKean 272 posts 549 karma points
    Apr 07, 2016 @ 10:43
    Ben McKean
    0

    Hi Warren,

    I've just looked ad the live logs and this is still appearing there in the last few days. I've just gone through the site and submitted the forms and none of them throw an error or log an error in the error logs so struggling to replicate at the moment.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 07, 2016 @ 12:07
    Warren Buckley
    0

    Thanks for the update.
    I am not sure what could be causing this. Especially if everything seems to be working all OK.

    This got approved as fixed by internal review for this sprint - http://issues.umbraco.org/issue/CON-906

    So a nightly build of Umbraco Forms should be available for you to try that should give more contextual logging & MiniProfiler messages to help you.

    When doing any updates make sure you always backup, so you can ensure you can rollback if needed.

    http://nightly.umbraco.org/?container=umbraco-forms

    https://umbraconightlies.blob.core.windows.net/umbraco-forms/nightlies/UmbracoForms.Files.4.2.2-build142.zip

    Let me know if this helps to pinpoint the problem for you.

    Thanks,
    Warren

Please Sign in or register to post replies

Write your reply to:

Draft