My ASP page reads a file from a shared directory and sends it to the user.
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition:", string.Format("attachment; filename={0}", fileName));
Response.WriteFile(filePath);
Response.End();
This ASP code runs on the web server, I suppose it is running as Local System account because IIS is. filePath points to a file on the file server \\fileserver\shared\abc.pdf
When I debug the code on my local machine, the file is read correctly from ASP page. However when I run it on the web server, it can not read the file. What permission do I need to give \fileserver\shared so that the ASP page will correctly read the file? Obviously Local System is not a valid user logon in the permission page.