We've set the IUSR account to have "full control" on the upload directory.
The entire error message I'm seeing is:
Error saving 446_8089_150632.gif
System.UnauthorizedAccessException: Access to the path 'D:\inetpub\wwwroot\rmcpapp\uploads\446_8089_150632.gif' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) at Telerik.Web.UI.Upload.RadUploadFile.SaveAs(String fileName, Boolean overwrite) at RMCPWebApp.Upload.Page_Load(Object sender, EventArgs e)
9 Answers, 1 is accepted
Please set the Full Control to the account that the asp.net process is running under (by default this is the Network Service account) to that folder as well.
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
We are running this web app using compatibility mode on IIS7.
Does it matter, do you think, that I am targeting the ASP.NET 3.5 framework?
So expand the parent node in IIS, click on Application Pools, select your pool, right-click and select Advanced Settings, and then change the Identity setting to NetworkService.
Hope that saves you a few hours of Internet searching. It's a really simple thing, but so easily to overlooked.
Access to the path is denied.
In my case RadAsyncUpload is unable to move the uploaded file from the temp directory to my specified TargetFolder. I am able to write files to the specified TargetFolder in codebehind using My.Computer.FileSystem.WriteAllText without any permissions issues, so I'm surprised the Telerik Control would encounter these issues.
Is the issue reproducible on a sample project? Could you please open a support ticket and send the sample to us so that we can take a look. Usually, the default account that IIS issues is sufficient in order for RadAsyncUpload to work properly.
All the best,
the Telerik team
I am having exactly the same problem described by Albert Shenker "Access to the path is denied.
In my case RadAsyncUpload is unable to move the uploaded file from the temp directory to my specified TargetFolder."
Setting the target folder property in RadAsyncUpload or using the saveas method to move the file to target folder throw the same exception but if I use system.io to write a file in target folder it runs fine. I am using IIS7.5 on a WIndows 7 professional and Telerik version 2015.1.225.45.
I tried to give full permission to "everyone" on the target directory but fails. I've already tried to change pool identity from AplicationPoolIdentity to Network Service but I am still getting the same error message (Access denied).
I am stuck with this problem.
As I wrote above this situation is really bizarre. RadAsyncUpload send the files do tempFolder "~App_Data\RadUploadTemp" but it cant move the file to target directory.
My target folder has full permissions to everyone. So I decided to try a different approach to test. I chaged the property "temporary folder", instead of "~App_Data\RadUploadTemp" I wrote "~/documents/files" which is my target folder. Surprise, It works! RadAsyncUpload is able to upload a file to this target directory so why it throws "access denied" when it moves the file from default temporary folder? It doesnt make any sense!
I decided to put the temporary folder equal to my target folder and now it is woriking as expected.It uploads the file with a random name than it changes the file name to its original name. The difference here is that It's not moving the file to another directory
I will keep it this way and move on cause I lost almost a day with this issue but I would like to hear from Telerik what they think about this issue.