1

I created a web application Claims Authentication. I want create a custom login form.

I use this link for create it. But when login it , I get error: Access Denied

1 Answer 1

0

does your login form inherit UnsecuredLayoutsPageBase ? and need override the AllowAnonymousAccess property to return True, AllowNullWeb is a optional property to override to return true

6
  • I add a new Application Page in project Solution Explorer to create Custom Login page. I don't understand what you mean.!
    – ar.gorgin
    Apr 28, 2012 at 9:23
  • e.g. your login page named CustomLogin.aspx. when you open CustomLogin.aspx.cs, you will find public class CustomLogin:LayoutsPageBase, change LayoutsPageBase to UnsecureLayoutsPageBase
    – Eric
    Apr 29, 2012 at 6:52
  • Thanks, This use which reference?
    – ar.gorgin
    Apr 29, 2012 at 6:57
  • the same of LayoutsPageBase
    – Eric
    Apr 29, 2012 at 7:02
  • Thanks, I use this but i get error: Access Denied again :(
    – ar.gorgin
    Apr 29, 2012 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.