Forms authentication log in failure

Posted on 2008-11-10
Last Modified: 2013-11-26
I have visual studio 2008 and using 3.5 sp1.

Also, I have windows web server edition 2008 and sql server 2008 web edition.

If I use windows authentication, it works fine:

    <authentication mode="Windows" />
      <identity impersonate="true" />
      <customErrors mode="Off"/>

But once I switch to forms authentication:

      <authentication mode="Forms">
      <forms cookieless="UseCookies" defaultUrl="~/Default.aspx"
            domain="" enableCrossAppRedirects="false"
            loginUrl="~/Default.aspx" name=".ASPXAUTH"
            path="/" protection="All" requireSSL="false"
            slidingExpiration="true" timeout="30" />
      <identity impersonate="false" />

Even if only a simple one:
      <authentication mode="Forms">
            <forms name=".ASPXAUTH" loginUrl="~/Default.aspx" protection="All" timeout="999999"/>
      <identity impersonate="false" />

It errors...
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

What can I do to get forms authentication to work?

Question by:BobCSD
    LVL 16

    Expert Comment

    by:Gyanendra Singh
    are you using and database related stuff... if yes please paste your connection string
    LVL 1

    Accepted Solution

    I needed:
            <identity impersonate="true" />

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now