locked
Forms authentication not working with Dynamic Data RRS feed

  • Question

  • User-1246852455 posted

    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, I can hit the website:

        <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" />
            </authentication>
          <identity impersonate="false" />

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

    It errors when I try to go to the /List.aspx page:
    Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    What can I do to get forms authentication to work?

    Monday, November 10, 2008 5:07 PM

Answers

  • User-1246852455 posted

    I tried this:

          <identity impersonate="true" />

    And that seems to be the problem. That fixed it as far as I can tell.

    thanks!

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 10, 2008 8:36 PM

All replies

  • User-1246852455 posted

    I tried this:

          <identity impersonate="true" />

    And that seems to be the problem. That fixed it as far as I can tell.

    thanks!

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 10, 2008 8:36 PM
  • User-1005219520 posted

    The default for Authentication is  disabled. You can also set this in IIS Manager by selecting the web site. Select the Features View in the center panel, select Authentication under the IIS area,  right click
    ASP.NET Impersonation     Disabled
    and set it to enabled. You can also set Identity to impersonate here.

    Monday, November 10, 2008 9:56 PM