[Mono-aspnet-list] Mono Asp.NET MVC 4 and async actions

Daniel Lo Nigro lists at dan.cx
Wed Apr 10 03:33:25 UTC 2013


As far as I know, the async parts of ASP.NET are not fully implemented in
Mono yet so it might not work as expected.

Can you try return Content("Test"); instead of return View(...)? Sometimes
the "The view 'Index' or its master was not found or no view engine
supports the searched locations." error is misleading and actually masks a
different error.


On Wed, Apr 3, 2013 at 10:57 PM, Ventsislav Mladenov <
ventsislav.mladenov at gmail.com> wrote:

> HI, all
>    Today I tried to use async actions under Mono 3.0.6, I changed one
> action method which works correctly to async action:
> Change Controller to AsyncController
> Change action declaration from:
>
> public ActionResult Index  to
> public Task<ActionResult> Index
>
> And now I'm getting error:
> System.InvalidOperationExceptionThe view 'Index' or its master was not
> found or no view engine supports the searched locations. The following
> locations were searched: ~/Areas/Reports/Views/Activities/Index.aspx
> ~/Areas/Reports/Views/Activities/Index.ascx
> ~/Areas/Reports/Views/Shared/Index.aspx
> ~/Areas/Reports/Views/Shared/Index.ascx ~/Views/Activities/Index.aspx
> ~/Views/Activities/Index.ascx ~/Views/Shared/Index.aspx
> ~/Views/Shared/Index.ascx ~/Areas/Reports/Views/Activities/Index.cshtml
> ~/Areas/Reports/Views/Activities/Index.vbhtml
> ~/Areas/Reports/Views/Shared/Index.cshtml
> ~/Areas/Reports/Views/Shared/Index.vbhtml ~/Views/Activities/Index.cshtml
> ~/Views/Activities/Index.vbhtml ~/Views/Shared/Index.cshtml
> ~/Views/Shared/Index.vbhtml
>
> *Description:* HTTP 500.Error processing request.
>
> *Details:* Non-web exception. Exception origin (name of application or
> object): System.Web.Mvc.
> *Exception stack trace:*
> at System.Web.Mvc.ViewResult.FindView (System.Web.Mvc.ControllerContext
> context) [0x00000] in <filename unknown>:0 at
> System.Web.Mvc.ViewResultBase.ExecuteResult
> (System.Web.Mvc.ControllerContext context) [0x00000] in <filename
> unknown>:0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult
> (System.Web.Mvc.ControllerContext controllerContext,
> System.Web.Mvc.ActionResult actionResult) [0x00000] in <filename unknown>:0
> at
> System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17
> () [0x00000] in <filename unknown>:0 at
> System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter
> (IResultFilter filter, System.Web.Mvc.ResultExecutingContext preContext,
> System.Func`1 continuation) [0x00000] in <filename unknown>:0
>
> The project is on .net 4.0 and uses asp.net mvc 4
>
> Then I tried the code under MS.NET and it works.
>
>
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20130410/1bfbf96e/attachment.html>


More information about the Mono-aspnet-list mailing list