Skip to content

Area M crashes silently within all pages #41

Description

@aoancea

Accessing /M#/sections will crash silently by swallowing the exception and logging it as per below:

==EXCEPTION==============================================================
[Exception type] System.InvalidOperationException
[Message] The partial view 'Sections' was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Template/Sections.aspx
~/Views/Template/Sections.ascx
~/Views/Shared/Sections.aspx
~/Views/Shared/Sections.ascx
~/Views/Template/Sections.cshtml
~/Views/Template/Sections.vbhtml
~/Views/Shared/Sections.cshtml
~/Views/Shared/Sections.vbhtml
[Source] System.Web.Mvc
[Stack trace] at System.Web.Mvc.PartialViewResult.FindView(ControllerContext context)
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.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult)
[Target site] System.Web.Mvc.ViewEngineResult FindView(System.Web.Mvc.ControllerContext)

It seems that when a /(slash) is missing from the URL the rendering engine doesn't know where to search.

  • PartialView's path should then be given explicitly on each action from TemplateController or redirect to the right URL. Actual URL should be /M/#/sections
  • Exceptions should not be swallowed anymore but logged and the User should be redirected to an Error Page

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions