.net - T4MVC problems with MVC 2 under VS2010: cannot convert from 'method group' to 'System.Web.Mvc.ActionResult' -


just added t4mvc templates project, built , tried use cool new features introduces.

i tried update redirecttoaction("notfound", "error");

to redirecttoaction(mvc.error.notfound);

i following error @ build:

argument 1: cannot convert 'method group' 'system.web.mvc.actionresult' 

also, in views, when try this: <%= url.action(mvc.home.index) %>

i messages say:

argument type 'method group' not assignable parameter type 'system.web.mvc.actionresult'

not sure begin troubleshooting this.

you need call action method. e.g. mvc.error.notfound(). see doc more examples.


Comments

Popular posts from this blog

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -