requirehttps

[RequireHttps] fails in MVC Preview 2 when applying to AccountController.LogOn

When trying to apply [RequireHttps] to AccountController.Logon in ASP.NET MVC 2 Preview 2 I get the following error : ASP.NET detected invalid characters in the URL. This is because ASP.NET has rewritten my request from http://example.com/admin to https://example.com/account/logon%3FReturnUrl=/admin It is ASP.NET itself that ha...

Error while using RequireHttps of MVC

I am using RequireHttps for my application to redirect t0 https when the user enters http by default. I have followed asp-net-mvc-requirehttps-in-production-only But after implementing this, i am getting the following error for each request: System.Web.HttpException: A public action method 'blank.htm' was not found on controller 'MyPro...

ASP.NET MVC RequireHttps not available

I'm using System.Web.MVC v2.0.50727 and can't seem to apply the RequireHttpsAttribute. I can use [OutputCache(...)] for instance, but if I try to use [RequireHttps] I get a missing assembly error. Is there a later version of mvc 2 out there that includes this? ...