1
Vote

The view 'xxxxxx' or its master was not found

description

Here's a weird intermittent problem. Looks like a run condition.
 
Sometimes, I get the following error. It seems to be bypassing the MVP API completely but an immediate retry usually works as expected.
 
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.
 
Server Error in '/' Application.
The view 'ListJson' or its master was not found. The following locations were searched:
~/Views/Task/ListJson.aspx
~/Views/Task/ListJson.ascx
~/Views/Shared/ListJson.aspx
~/Views/Shared/ListJson.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 'ListJson' or its master was not found. The following locations were searched:
~/Views/Task/ListJson.aspx
~/Views/Task/ListJson.ascx
~/Views/Shared/ListJson.aspx
~/Views/Shared/ListJson.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 'ListJson' or its master was not found. The following locations were searched:
~/Views/Task/ListJson.aspx
~/Views/Task/ListJson.ascx
~/Views/Shared/ListJson.aspx
~/Views/Shared/ListJson.ascx]
System.Web.Mvc.ViewResult.FindView(ControllerContext context) +454
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +126
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
System.Web.Mvc.<>c__DisplayClass14.<InvokeActionResultWithFilters>b__11() +23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +264
System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +20
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func
1 continuation) +264
System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +20
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +176
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +345
System.Web.Mvc.Controller.ExecuteCore() +115
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +42
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
System.Web.Mvc.Async.<>c__DisplayClass8
1.<BeginSynchronous>b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +43
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8836913
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
 
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
In my controller, I have:
 
    //
    // GET: /Task/ListJson
    [Api]
    [HttpGet]
    public ActionResult ListJson(DateTime from, DateTime to)
    {
        return View(TaskService.TaskOccurrencesJson(from, to));
    }

comments

flammon wrote Sep 29, 2010 at 7:41 PM

Here are the headers for a successful transaction

Server ASP.NET Development Server/10.0.0.0
Date Wed, 29 Sep 2010 18:35:44 GMT
X-AspNet-Version 4.0.30319
X-AspNetMvc-Version 2.0
Cache-Control private
Content-Type application/json; charset=utf-8
Content-Length 4933
Connection Close
Request Headersview source
Host localhost:4050
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 (.NET CLR 3.5.30729)
Accept application/json, text/javascript, /
Accept-Language en-ca,en;q=0.8,en-us;q=0.5,fr-ca;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
X-Requested-With XMLHttpRequest
X-Prototype-Version 1.7_rc2
Referer http://localhost:4050/Task Here are the headers for a failed transaction.

Server ASP.NET Development Server/10.0.0.0
Date Wed, 29 Sep 2010 18:35:44 GMT
X-AspNet-Version 4.0.30319
Cache-Control private
Content-Type text/html; charset=utf-8
Content-Length 9040
Connection Close
Request Headersview source
Host localhost:4050
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 (.NET CLR 3.5.30729)
Accept application/json, text/javascript, /
Accept-Language en-ca,en;q=0.8,en-us;q=0.5,fr-ca;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
X-Requested-With XMLHttpRequest
X-Prototype-Version 1.7_rc2
Referer http://localhost:4050/Task Odd how the following is missing in the failed transaction.
X-AspNetMvc-Version 2.0

flammon wrote Sep 29, 2010 at 7:58 PM

I can't reproduce on IIS so this might be a Visual Studio / "ASP.NET Development Server" problem...

wrote Feb 13, 2013 at 3:04 AM