[Mono-bugs] [Bug 642144] New: Calling ChildActionExtensions.Action or .RenderAction from a template causes an exception in runtime

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 27 17:26:41 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=642144

https://bugzilla.novell.com/show_bug.cgi?id=642144#c0


           Summary: Calling ChildActionExtensions.Action or .RenderAction
                    from a template causes an exception in runtime
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: netspider at mail.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10)
Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10

When I try to render an Action from a template I get a following result:

System.Web.HttpException: The controller for path '/Account/Details/2' was not
found or does not implement IController.
  at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance
(System.Web.Routing.RequestContext requestContext, System.Type controllerType)
[0x00000] in <filename unknown>:0 
  at System.Web.Mvc.DefaultControllerFactory.CreateController
(System.Web.Routing.RequestContext requestContext, System.String
controllerName) [0x00000] in <filename unknown>:0 
  at System.Web.Mvc.MvcHandler.ProcessRequestInit (System.Web.HttpContextBase
httpContext, IController& controller, IControllerFactory& factory) [0x00000] in
<filename unknown>:0 
  at System.Web.Mvc.MvcHandler.BeginProcessRequest (System.Web.HttpContextBase
httpContext, System.AsyncCallback callback, System.Object state) [0x00000] in
<filename unknown>:0 
  at System.Web.Mvc.MvcHandler.BeginProcessRequest (System.Web.HttpContext
httpContext, System.AsyncCallback callback, System.Object state) [0x00000] in
<filename unknown>:0 
  at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest
(System.Web.HttpContext context, System.AsyncCallback cb, System.Object
extraData) [0x00000] in <filename unknown>:0 
  at
System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper+<BeginProcessRequest>c__AnonStorey55.<>m__87
() [0x00000] in <filename unknown>:0 
  at
System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper.Wrap[IAsyncResult]
(System.Func`1 func) [0x00000] in <filename unknown>:0 

Reproducible: Always

Steps to Reproduce:
Create a View template with a call to Html.Action() or Html.RenderAction() in
it.
Compile and navigate to the page
Actual Results:  
HTTP 500 exception stack trace appears

Expected Results:  
To see the page with Action rendering embedded

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list