Intermittent errors 401 and 302 in static files

I am developing a website for our client, and I have had problems with grunts for several weeks. The problem is intermittent and can occur twice a day or once every 2 weeks.

When this happens, the client will begin to receive 401.3 "Unauthorized" errors when trying to load static script or style tags on the page. This is always a .css or .js file that fails, and setting <modules runAllManagedModulesForAllRequests="false" /> does not fix the problem. When a problem occurs, it effectively locks the file until the application pool restarts.

The site uses forms authentication with a margin of "AspNetSqlMembershipProvider". The site is protected by files in the / Accounts folder, styles in / Styles and scripts in / Scripts. The site has anonymous access and has a separate web.config file in the / Accounts folder, which prohibits access to anonymous users (although this does not even matter with runAllManagedModulesForAllRequests = false).

I looked at the event logs and I see the following:
2012-06-06 14:23:32 [ipaddress] GET / subfolder / Styles / Site.css ver = 11 443 - [ipaddress] Mozilla / 5.0 + (Windows + NT + 6.1; + WOW64; + rv: 12.0) + Gecko / 20100101 + Firefox / 12.0 https://thesitename.net/subfolder/Account/Login.aspx 401 3 5 1493 429 62

Sometimes after a short period of time it fixes itself or restarts the application pool, I get the following:
2012-06-06 14:30:30 [ipaddress] GET / subfolder / Styles / Site.css ver = 11 443 - [ipaddress] Mozilla / 5.0 + (Windows + NT + 6.1; + WOW64; + rv: 12.0) + Gecko / 20100101 + Firefox / 12.0 https://thesitename.net/subfolder/Account/Login.aspx 200 0 0 2533 455 78

Finally, I got a hosting provider that turned on failed request tracing and finally got an error trace: frt

Every failed request trace file I received this time said that the crash happens right after the FILE_CACHE_ACCESS_END event. What does this event do and why will it be denied access?

+4
source share
3 answers

EDIT:

You should probably try following the "failed request" instructions here . The error is almost certainly related to NTFS permissions.

It looks like you get a Win32 error "path not found" in the problem line ( 3 immediately after the HTTP status code, sc-win32-status field).

Are these files associated with a network share? It appears that there may be some connectivity issues between the web server and the drive that hosts these files. This may be in the form of an authorization error for the IIS user when trying to read these files, which explains error 401.

W3C Extended Log File Format (IIS 6.0) here: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/676400bc-8969-4aa7-851a-9319490a9bbb.mspx?mfr=true

Win32 Status Codes: http://msdn.microsoft.com/en-us/library/ms681382.aspx

+1
source

I would examine the cause of this error in the health monitoring logs (event ID 3005: System.Data.Linq.ChangeConflictException) before anything else. If your problems begin to arise after this error, then there is a good chance that fixing this error will solve your problems.

Here are some pages that discuss this error and may help to understand the error and how to fix it:

http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/11/25/linq-to-sql-concurrency-changeconflictexception-row-not-found-or-changed.aspx

http://sebastienlachance.com/post/SystemDataLinqChangeConflictException-Row-not-found-or-changed.aspx

http://weblogs.asp.net/okloeten/archive/2008/04/28/6139181.aspx

0
source

I struggled with this error for a long time.

One of the strange causes of this error is that resources (files or folders) are in the public domain (SMB share) with limited access rights or without access to "everyone". This revokes the rights that you can specifically add to the folder or files, and causes error 401.3 for anonymous access.

0
source

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


All Articles