ASP.NET / WS2003 uploaded files are not accessible - TechRepublic
Question
April 19, 2007 at 04:44 AM
stephenbirdsall

ASP.NET / WS2003 uploaded files are not accessible

by stephenbirdsall . Updated 19 years, 3 months ago

I have recently moved my ASP.NET application from a Windows Server 2000 machine to WS2003 and have started having problems with files that we allow our users to upload.

Specifically, any attempts to access the file directly are resulting in a username / password prompt being displayed.

Investigations on the server have revealed that when the file is uploaded, the IUSR_… account is not given any permissions to the it. It appears that the directory structure that the files are stored in has the permissions associated with it. Altering the permissions on the file directly result in the file being accessible.

Most of the time this is not a problem as we have code that is able to access and display the files, however it is a problem when a user uploads an image file. This is because we create a thumbnail of the file and display it on a webpage. Unfortunately, because of the problem with the file not being accessible, we are getting the missing link graphic (white box containing a red cross).

I suspect that the permissions associated with the directory are not being inherited by the file as it is uploaded, but do not know how to resolve this or where to start looking.

Thanks in advance for your help.

This discussion is locked

All Comments