Click here to Skip to main content
14,216,282 members
Rate this:
Please Sign up or sign in to vote.
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

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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
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.)

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

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190619.2 | Last Updated 28 Jan 2014
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100