"The view 'List' or its master could not be found."

Apr 28, 2009 at 10:06 AM
This doesn't look good:

Server Error in '/' Application.
--------------------------------------------------------------------------------

The view 'List' or its master could not be found. The following locations were searched:
~/Skins/Default/Views/Post/List.aspx
~/Skins/Default/Views/Post/List.ascx
~/Skins/Default/Views/Shared/List.aspx
~/Skins/Default/Views/Shared/List.ascx
~/Views/Post/List.aspx
~/Views/Post/List.ascx
~/Views/Shared/List.aspx
~/Views/Shared/List.ascx 
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 view 'List' or its master could not be found. The following locations were searched:
~/Skins/Default/Views/Post/List.aspx
~/Skins/Default/Views/Post/List.ascx
~/Skins/Default/Views/Shared/List.aspx
~/Skins/Default/Views/Shared/List.ascx
~/Views/Post/List.aspx
~/Views/Post/List.ascx
~/Views/Shared/List.aspx
~/Views/Shared/List.ascx

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[InvalidOperationException: The view 'List' or its master could not be found. The following locations were searched:
~/Skins/Default/Views/Post/List.aspx
~/Skins/Default/Views/Post/List.ascx
~/Skins/Default/Views/Shared/List.aspx
~/Skins/Default/Views/Shared/List.ascx
~/Views/Post/List.aspx
~/Views/Post/List.ascx
~/Views/Shared/List.aspx
~/Views/Shared/List.ascx]
   System.Web.Mvc.ViewResult.FindView(ControllerContext context) +100701
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +123
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +10
   System.Web.Mvc.<>c__DisplayClass11.<invokeactionresultwithfilters />b__e() +20
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +251
   System.Web.Mvc.<>c__DisplayClass13.<invokeactionresultwithfilters />b__10() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +178
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +350
   System.Web.Mvc.Controller.ExecuteCore() +110
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +27
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +119
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +41
   System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 


--------------------------------------------------------------------------------
And so basically, it just popped up like this one morning and has been the same ever since.
I haven't changed any mission critical files, I've merely made some HTML/CSS additions for deeper customization.

Tom.
Coordinator
Apr 28, 2009 at 10:10 AM
Are you sure?  I don't think it would complain unless it couldn't find a view.  Where is List.aspx in your solution?  What's the file path?
Apr 28, 2009 at 10:19 AM
"D:\Users\Tom\Documents\Visual Studio 2008\Projects\Oxite\OxiteSite\Views\Post\List.aspx"
Coordinator
Apr 28, 2009 at 10:22 AM
hhhmmm...what about the master page it references.  what does it say is the path in List.aspx for the master and what's the actual path on disk?
Apr 28, 2009 at 2:55 PM
"<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<OxiteModelList<Post>>" %>"

Actual path: D:\Users\Tom\Documents\Visual Studio 2008\Projects\Oxite\OxiteSite\Views\Shared\Site.Master
Coordinator
Apr 28, 2009 at 4:53 PM
hhhmmm...i'm confused then what's going on.  that should work.  :(  any chance you can step through and debug Oxite.Core/Skinning/OxiteWebFormViewEngine.cs in the FindFile method and see why it thinks the file doesn't exist?