U4-3640 - Overflow Starter Kit does not work

Created by Ove Andersen 21 Nov 2013, 16:17:39 Updated by Shannon Deminick 21 Jun 2017, 07:58:45

When installing the Overflow starter kit, you are greeted with an YSOD when trying to browse the site:

Server Error in '/' Application.

The partial view 'List' was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/RenderMvc/List.aspx ~/Views/RenderMvc/List.ascx ~/Views/Shared/List.aspx ~/Views/Shared/List.ascx ~/Views/RenderMvc/List.cshtml ~/Views/RenderMvc/List.vbhtml ~/Views/Shared/List.cshtml ~/Views/Shared/List.vbhtml ~/Views/Partials/List.cshtml ~/Views/MacroPartials/List.cshtml ~/Views/List.cshtml

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.InvalidOperationException: The partial view 'List' was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/RenderMvc/List.aspx ~/Views/RenderMvc/List.ascx ~/Views/Shared/List.aspx ~/Views/Shared/List.ascx ~/Views/RenderMvc/List.cshtml ~/Views/RenderMvc/List.vbhtml ~/Views/Shared/List.cshtml ~/Views/Shared/List.vbhtml ~/Views/Partials/List.cshtml ~/Views/MacroPartials/List.cshtml ~/Views/List.cshtml

Source Error:

Line 52: @foreach (var child in Model.Content.Children) Line 53: { Line 54: Html.RenderPartial(child.DocumentTypeAlias, child); Line 55: } Line 56:

Source File: c:\Users\oveand\Documents\My Web Sites\Umbraco CMS 7\Views\Overflow.cshtml Line: 54

Stack Trace:

[InvalidOperationException: The partial view 'List' was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/RenderMvc/List.aspx ~/Views/RenderMvc/List.ascx ~/Views/Shared/List.aspx ~/Views/Shared/List.ascx ~/Views/RenderMvc/List.cshtml ~/Views/RenderMvc/List.vbhtml ~/Views/Shared/List.cshtml ~/Views/Shared/List.vbhtml ~/Views/Partials/List.cshtml ~/Views/MacroPartials/List.cshtml ~/Views/List.cshtml] System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection) +327 System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +264 System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model) +58 ASP._Page_Views_Overflow_cshtml.Execute() in c:\Users\oveand\Documents\My Web Sites\Umbraco CMS 7\Views\Overflow.cshtml:54 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +103 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76 System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +256 System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107 Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +93 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +291 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.<>c__DisplayClass1a.b__17() +23 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +176 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +310 System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__19() +23 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19 System.Web.Mvc.Async.<>c__DisplayClass81.b__7(IAsyncResult _) +10 System.Web.Mvc.Async.WrappedAsyncResult1.End() +55 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +39 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23 System.Web.Mvc.Async.WrappedAsyncResult1.End() +55 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +29 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10 System.Web.Mvc.<>c__DisplayClass8.b__3(IAsyncResult asyncResult) +25 System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +23 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +31 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9688704 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440

Comments

Jesper Haug Karsrud 22 Nov 2013, 11:56:21

Did you add a document type called "List" to the document type list, and place it as a child under "Overflow" in the content tree? It tries to render partials called the same as the document types, and if no such partial or template exists, it fails :)


Ove Andersen 22 Nov 2013, 11:59:20

Yep, it seems so :-)

The starter kit should handle this situation though, but fixing it should be much easier.


Shannon Deminick 21 Jun 2017, 07:58:46

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.0

Due in version:

Sprint:

Story Points:

Cycle: