I’m using MVC2 in a mixed webforms project, my Model classes compile fine with optional and named parameters, but my view won’t compile when using them. I get:
Error 38 Feature ‘named argument’ cannot be used because it is not part of the 3.0 C# language specification
Any ideas? Thanks
Your app will need to be configured to run in ASP.NET 4.x rather than 2.x; you might also want (in your web.config):
You might get away without this if you pre-compile your views.