Asp.net images give accidentally 401 unauthorized error

I use Asp.net, IIS 6 and cdn for image service. I have a problem uploading images to my site. Images are located under the virtual folder. Every time I click on a browser update, some of the images give 401 unauthorized errors. (images and the number of displayed images that give 401 error differ with each update). I find it difficult to solve this problem. Any help would be greatly appreciated.

Sincerely.

PS: I also use load balancing to distribute traffic between the two servers. On one of the servers there are actual files and a virtual folder for them. On another server there is a virtual folder that shows the path and ip of the server on which there are files. I tried using the website through each server, but they both have the same problem.

Here are the headlines;

Answer:

HTTP/1.1 401 Unauthorized Content-Length: 1608 Content-Type: text/html Server: Microsoft-IIS/6.0 Date: Thu, 28 Apr 2011 14:38:55 GMT 

Request

 GET /img/blog/2011%2f4%2f4.png HTTP/1.1 Host: cdn.***.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729) Accept: image/png,image/*;q=0.8,*/*;q=0.5 Accept-Language: en-gb,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://www.***.com/Blog 
+7
source share
5 answers

Add permission for the following users to this virtual image folder

  • IUSR
  • IIS_IUSRS

After adding the above permission, check for a 401 error or not?

+11
source

set the security permission of the image folder of your site to iis_user or to all and give your full rights, and this error will be resolved forever.

Try this on my one site, I have the same problem, and using this method, I solved this error ....

0
source

If the problems with the images change with every update, this is probably not a problem with the resolutions - instead, it sounds as if some kind of lock is occurring. Do you have the indexing service turned on or is the AV solution working?

0
source

Do you study IIS magazines? This is almost 100% confidently related to the level of access to the virtual folder, and you may need to set up special credentials when opening the target location.

How to enable IIS 6 logging? Here . How to analyze IIS logs? Here .

0
source

Make sure the mime types for the extensions you use for images are configured in your IIS.

0
source