ASP.NET IIS authentication problem for some users

I have an ASP.NET repository site running on IIS6.0, and I have a problem that I cannot reproduce, but three users have this problem every time (about 20 other users work fine). I'm sure it has something to do with configuring IIS authentication, but I certainly didn't rule out an encoding error.

Users tell me that the common factor between the 3 who get the error is that they have uploaded over 60 documents to the site. All users are in a different province, so I only have screenshots that they took and server logs for debugging.

When trying to go to the ViewPage.aspx page (but not any other page on the site), they will be asked to enter user credentials. When they try to log in, they again receive a login request. After three login attempts, they receive the following error message:

HTTP Error 401.1 - Unauthorized: Access denied due to invalid credentials.

The system event viewer has the following warnings (more than 10 of them):

EventID: 1011
Source: W3SVC
Description: The
application pool serving the SDAAppPool process suffered a fatal communication error with the World Wide Web Publishing Service. The process ID was "3264". The data field contains the error number.

and

EventID: 1009
: W3SVC
:
, "SDAAppPool", . "2088". "0x800703e9".

:

EventID: 560
:
:
:
Open:
: SC
:
: WinHttpAutoProxySvc
ID: -
: {0,557880730}
: 444
: C:\WINDOWS\system32\services.exe
: EBTOPVNET01 $
: EBSS
: (0x0,0x3E7)
: NETWORK SERVICE
: NT AUTHORITY
: (0x0,0x3E4)
:


: -
Sid: 0
: 0x94

:

EventID: 5000
: .NET Runtime 2.0
: N/A
:
EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d691cc, P4 system.data, P5 2.0.0.0, P6 4889ece0, P7 1849, P8 0, P9 system.stackoverflowexception, P10 NIL.

web.config /:

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

ViewPage.aspx:

UsersService us = new UsersService();
TList<Users> currUser = us.Find("Ntid = '" + User.Identity.Name + "'");
int userID = 0;
if (currUser.Count != 0 )
{
    userID = currUser[0];
}

.. userID == 0, (, , 401 , User.Identity.Name ). , .

Google, , , , . - , , . , , , . .

+3
1

, - . , , ​​:

.NET:

+1

Source: https://habr.com/ru/post/1769621/


All Articles