File access problems
-
Hello again. Feels like I'm posting here on a 200-times a day basis.. My problem is that I get an "access denied" error message when I do this: FileStream fs = new FileStream(path,FileMode.Open, FileAccess.Read,FileShare.Read); I know I have to set persmissions for ASP.NET on the directory/file that is going to be manipulated - I granted the account full permission. Still that annoying error. I'm probably missing something as usual, but please help me. :sigh: / Stefan
-
Hello again. Feels like I'm posting here on a 200-times a day basis.. My problem is that I get an "access denied" error message when I do this: FileStream fs = new FileStream(path,FileMode.Open, FileAccess.Read,FileShare.Read); I know I have to set persmissions for ASP.NET on the directory/file that is going to be manipulated - I granted the account full permission. Still that annoying error. I'm probably missing something as usual, but please help me. :sigh: / Stefan
Grant rights to the user IUSR_<ComputerName>, I think it's not necessary for ASPNET to have rights, correct me if I'm wrong. Also, this depends on what type of authentication you are using. If you are using anonymous authentication, then IUSR_<ComputerName> is the one, or for Windows 2003 Systems, it's IIS_WPG or a name like that. For Windows authentication you need to set the proper rights for users / groups. daniero -- modified at 19:43 Thursday 8th December, 2005
-
Hello again. Feels like I'm posting here on a 200-times a day basis.. My problem is that I get an "access denied" error message when I do this: FileStream fs = new FileStream(path,FileMode.Open, FileAccess.Read,FileShare.Read); I know I have to set persmissions for ASP.NET on the directory/file that is going to be manipulated - I granted the account full permission. Still that annoying error. I'm probably missing something as usual, but please help me. :sigh: / Stefan