.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

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -