Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.