[Mono-aspnet-list] Could not load type 'System.Web.Mvc.HttpGetAttribute'

Robert Jordan robertj at gmx.net
Wed Dec 8 16:06:56 EST 2010


On 08.12.2010 21:59, monoonom wrote:
>
> In my MVC-App when I add eg. HttpGet or HttpPost attribute to my
> ActionMethods, I'm getting the following Error:
>
> System.TypeLoadException: Could not load type
> 'System.Web.Mvc.HttpGetAttribute' from assembly 'MyMVC'.

This attribute is not supported in MVC1. Either use this one:

[AcceptVerbs(HttpVerbs.Get)]

or switch to MVC2.

Robert



More information about the Mono-aspnet-list mailing list