« Previous Next »

Thread: Windows Authentication problem with IIS7

Last post 10-20-2009 12:02 PM by Sun2009. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 04-23-2009, 8:41 AM

    • mandomad
    • Not Ranked
    • Joined on 04-23-2009, 12:25 PM
    • Australia
    • Posts 1

    Windows Authentication problem with IIS7

    Hello

    I have an ASP.NET application developed in VS 2008 on a PC with Windows Vista Ultimate. The application uses Windows Authentication. When I run it from the development environment the default page (default.aspx) is displayed as expected. After publishing the application I created a Web Site in IIS7 with a unique App Pool (using the default settings). The site was set up as Windows Authentication, port 80 and a HostName. I defined the HostName in the hosts file. When I load the site (e.g. http://myWebSite) I get a Windows User ID/Password dialog box. Regardless of what valid data I enter the User ID/Password is never accepted. I get the same results on SBS 2008.

    I then installed the application on an XP PC (IIS5.1) with the same IIS Configuration (and connected to the same network so using the same network credentials) the application loads default.aspx without any User ID/Password dialog.

    I then started to build a new web site gradually adding the various IIS configuration items. I eventually found a workaround ... I removed the HostName and hosts entry and gave the site a unique port number. When I loaded http://servername:801 the default page loaded without dialog box.

    While the workaround is good for my sanity (if nothing else) I would really like to find out what I need to do to make it work as expected (e.g. http://myWebSite).

    Regards
    James
  • 04-25-2009, 1:44 AM In reply to

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

    Re: Windows Authentication problem with IIS7

    Hope this KB article helps,

    http://support.microsoft.com/kb/258063

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

    Re: Windows Authentication problem with IIS7

    I am having the same issue, except that I can connect to the website from remote machines, but when trying to browse the website locally, I get access denied. The article above didn't help me at all.

     Anyone help?

     

  • 05-07-2009, 6:40 AM In reply to

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

    Re: Windows Authentication problem with IIS7

    If you only failed to access IIS locally, then this KB article can help,

    http://support.microsoft.com/kb/896861

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

    Re: Windows Authentication problem with IIS7

    Thanks lextm, that helped.

    It is surprising too, because I had another website on same server with host header, and had no problem accessing it. Also, if I use mozilla firefox there is no problem, only with IE!!!

    But everything is good now.

     Thanks

  • 10-20-2009, 12:02 PM In reply to

    • Sun2009
    • Not Ranked
    • Joined on 10-20-2009, 10:13 AM
    • Posts 1

    Re: Windows Authentication problem with IIS7

    Hi James, have you already got a solution to this problem? It happens exectly with me.

    Thanks

     

Page 1 of 1 (6 items)
Microsoft Communities