Click here to Skip to main content
15,845,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting this Error message while saving the Image to the Folder. I did give the full permission to the following group/user name to that folder.


Authenticated Users
IUSR
SYSTEM
IIS_WPG
ASP.NET
Administrators
IIS_IUSRS
Posted

1 solution

Depends on where you are saving the file, and what user your system is using to save it. Since your list includes IIS agents, I assume you are using a web based solution: the normal save location for such applications would be under a folder below the main web site page so that it was all contained.

I would assume that you are currently using an absolute path, like "C:\Images\User\" or similar - don't.

Try using something like
C#
string actualPath = Server.MapPath(@"~\Images\User\myPic.jpg");
Which wioll reference a folder relative to your main page (you will probably have to create the folders "Images" and "User" if they do not exist already.)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900