Search code examples
asp.netmonomonodevelop

FormsAuthentication on mono/ASP.NET?


I am aware that this is a known problem , that trying to use FormsAuthentication on mono leads to Could not load type System.Web.UnvalidatedRequestValuesBase exception. My question is: has there been any way to work around the issue?

The reason why I am asking is: most of the authorization stuff does work. I am getting redirected to logon form and such. The only thing I can not do is FormsAuthentication.RedirectFromLoginPage or FormsAuthentication.SetAuthCookie. There's got to be a way to get around that, otherwise what's the use of all the framework xamarin folks expended if you can't actually login?

For example: maybe there is some other logon module which works like forms authentication module, but is implemented differently?


Solution

  • Apparently, this issue is not happening in MVC2 project as created by monodevelop. I guess this is how FormsAuthentication could possibly be used. I would keep this question unanswered in case someone can post a better answer.