Discussion Locked
0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
This is an odd error that I have come across. I am creating a form that users can use to submit some text with an optional photo. My first trial of this form threw an Access denied error when run in IE, at the time I did not attempt to run it in Firefox. On my private test server where I was testing the form, I set the permissions for the ASP.NET account (its written in ASP.NET and some C#) to full access as it needs to modify a text file and save the photos to the server. It works perfectly in IE, but when run in Firefox I get the Access to the path C:\\images is denied error.Ive come up short of giving permissions to everyones grandmother and the kitchen sink in my house that I can think of. What I would like to know is what group of users does Firefox use to access the page so that I can give it the permissions needed to access the files/folders. If anyone knows that would be a great help. Thank you in advance.
5 replies
by onbliss
Is the folder that you mention under the web application or is it outside? What I am trying to ask is are you able to get to the image folder thus "~/image/" in your asp.net code?
I changed the code so that it worked with File and System commands. Before I was using Directory and it was throwing on an extra character in the path string. So changing that and also giving file access permissions to ASP.NET was what fixed it.
I'm sure you've probably already tried this, but it does bear mentioning. Depending on how your IIS security is set up, IIS will impersonate the user logging in. If you're having people log in, you need to ensure that their userid has permissions to the directory both in the system AND in IIS. Run a search on ".NET Authentication" for loads more info.
Steve G.
I was able to find the problem and that was with the string for the path. It was adding on an extra character at the end (/) for the file in firefox and netscape. The solution was to use system commands and not Directory commands to get the full path. But your solution did bring up the access problem and I was able to find information that allowed me to set the permissions on the folder for other groups as well so that they can read and write and modify the file. Thanks for your help there.
This question was closed by the author
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
1 helpful
3 replies
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Question Unanswered
Best Way to Make Long WordPress Location Guides Mobile Friendly
0 helpful
0 replies
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies