简体   繁体   中英

ASP.NET, 401 - Unauthorized, Valid account

This is a bit complicated

I'm running a .NET 4.0 site on a IIS 7.5, using Windows Authentication and running the site in custom application pool with Identity set to a Domain Admin account(need to run scripts with admin rights).

My webconfig is as follows:

<authentication mode="Windows"/>
<authorization>
  <deny users="?"/>
</authorization>

</system.web>

Whenever i log on to the site, using IE8 (it should authenticate me automaticly) it asks me for credentials, and I supply some generic Domain User credentials, I'm denied until it gives me the error: 401 - Unauthorized: Access is denied due to invalid credentials.

However, If I supply it my Domain Admin credentials, I'm granted access, good for me, but bad for my users:)

What is going on?

Some common problems people have are: Setting NTML as the default Authentication provider, no dice. And the wwwroot folder isn't shared

Did you enable your Windows authentication in your IIS7.5 for site in your Virtual Directory?

在此处输入图像描述

The problem has solved itself

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM