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

Ventsislav Mladenov ventsislav.mladenov at gmail.com
Wed Apr 3 11:57:33 UTC 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20130403/4f57c5d3/attachment.html>


More information about the Mono-aspnet-list mailing list