SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 0 down vote accepted

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

share|improve this answer
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 '12 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 '12 at 6:52
Thanks, This use which reference? – ar.gorgin Apr 29 '12 at 6:57
the same of LayoutsPageBase – Eric Apr 29 '12 at 7:02
Thanks, I use this but i get error: Access Denied again :( – ar.gorgin Apr 29 '12 at 7:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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