« Previous Next »

Thread: Forms Authentification on IIS 7.0 w/ Local AD/DC DB Server Physical

Last post 06-10-2009 6:18 AM by lextm. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-08-2009, 6:25 PM

    Forms Authentification on IIS 7.0 w/ Local AD/DC DB Server Physical

    Hi there!

    Today I was publishing a webapp from my vs2008 workstation to a local IIS 7.0 Web Server, so In the C# Code, I supossed to use Forms Authentication, when I configured the new website in the server, I enabled Windows Authentication. Then I haved to login on the AD/DC DB Server 192.168.X.X in Windows way, I means start>run>ip Server>user&password and then view the shared files. at Last I browse the web application and perform some CRUD Transactions.

     So my two questions are (for now) :


    • Why not works with FormsAuthentication, when I tryed, IE shows me HTTP Error 401.2 


    • Why I have to login on the server with the previous described way. May I Have to configure a Guest Account with read permissions for everyone that want to view the website?

     Thanks in Advance!

     

  • 06-09-2009, 4:46 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,269

    Re: Forms Authentification on IIS 7.0 w/ Local AD/DC DB Server Physical

    The configuration of Forms authentication is nearly the same for IIS 7.

    First, you need to enable only anonymous authentication on the site, and then enable Forms authentication in the site level web.config file.

    I saw you enabled Windows Authentication on IIS, which is obviously incorrect.

    Also noticed that you used a lot of terms that I could not understand. What is the so called Guest Account? Isn't that something in your application? If this is application specific, you need to consult the developers of this application.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-09-2009, 10:37 AM In reply to

    Re: Forms Authentification on IIS 7.0 w/ Local AD/DC DB Server Physical

    Thanks for responses,

    The application is using Forms Auth.

    I mean Guest Users, for example a external user not registered as employee in our company, wants to use some modules in the website.

    I enables windows authentication on IIS, cause I dont know how to configure Forms Authentication. Also I have tryed putting my Login.aspx as Main Page for Authentication (IIS 7) but it seems not works

  • 06-10-2009, 6:18 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,269

    Re: Forms Authentification on IIS 7.0 w/ Local AD/DC DB Server Physical

    Then first we need to make Forms authentication correctly configured,

    http://technet.microsoft.com/en-us/library/cc753252(WS.10).aspx

    Please consult the site developers about details. If you are new to ASP.NET model, you can find more information from http://www.asp.net. We have a lot of tutorials available there to guide you.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (4 items)