ASP.NET Windows Authentication not working / not accepting credentials

I’m trying to resolve this issue after a couple of weeks through Googleand reading SO, and I’m out of luck, so I thought I would finally try to ask myself.

I create a very simple and simple website ASP.NETon our intranet to generate some information for internal users. I use Windows authentication, not anonymous access, because based on which user gets to the site, I will generate various information.

In short, this works great when testing on the local machine Windows 7where I developed the application. However, from Windows 2008 R2 serverwhere I want it to be when I get to the site, I get a pop-up asking for my credentials, and even if I enter it, he asks me again and again about them. This happens regardless of whether I delete the site remotely or locally. If I try to use anonymous access, I can get to the site in both directions, but since I cannot identify the user, I cannot generate the information that I would like to provide.

Notes:

  • In IIS, I have Windows authentication and an impersonation of ASP.NET for the site. Everything else is disabled.

  • To understand this, I currently have the web.config set installed for all users, and I do not deny it.

  • The host / URL that I use for it is toolName.organization.local
  • I was worried that this is a problem for the server user of the 2008 R2 server living in a different domain, and then my remote user, which I tested, but again it does not work locally.
  • The AppHost file currently includes support for WindowsAuthentication.

                <windowsAuthentication enabled="true">
                <providers>
                    <add value="Negotiate" />
                    <add value="NTLM" />
                </providers>
                </windowsAuthentication>
    

Admittedly, I usually use authentication on this server for all of our other internal sites, so I'm a little new to Windows authentication and this problem. At the moment, I'm just not sure what to try or check on, so any advice would be helpful. Thank.

+5
source share
3 answers

, , . , AppPool, Identity: ApplicationPoolIdentity NetworkService. ( " IIS7.5" ), , .

, !

+8

-, , Windows Internet Explorer, , . Firefox, Chrome .. .

, .

<authentication mode="Windows" /> web.config

, , , <identity impersonat="true"/>. , ( ).

web.config, Windows.

+2

, , , NTFS. , , , <allow> <deny> .

0
source

All Articles