Charles
Posted
on Jul 24, 2008
(permalink)
Using the RadUpload control, I'm seeing problems uploading on Windows Server 2008/IIS7 -- specifically an "Access to the path... is Denied".
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)
Any thoughts?
Reply
Veselin Vasilev
Veselin Vasilev
Posted
on Jul 24, 2008
(permalink)
Hello Charles,
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.
Regards,
Veskoni
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.
Reply
Charles
Posted
on Jul 24, 2008
(permalink)
Hi, Vaskoni. Thanks for the quick reply. Just tried setting the permissions for the "Network Service" account to "Full Control" to my uploads directory, and then restarted IIS 7. The result was the same (failed) with the same error message.
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?
Reply
Veselin Vasilev
Veselin Vasilev
Posted
on Jul 24, 2008
(permalink)
Hi Charles,
You could check this article which seems helped on that problem:
http://forums.asp.net/p/1104125/1689208.aspx
Regards,
Veskoni
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.
Reply
Answer
Brad
Posted
on Feb 7, 2010
(permalink)
Just posting this to help the next guy that has this problem. In IIS7 you need to make sure that the Application Pool that your website is running under is using the NETWORK SERVICE account. Per the posts above which make perfect sense for someone coming from IIS6, setting elevated permissions for NETWORK SERVICE won't do anything at all if you're not running under that account.
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.
Brad
Reply
Raj Nemani
Posted
on Apr 5, 2010
(permalink)
Thank you, Thank you!!
Reply
Albert Shenker
Master
Posted
on Oct 27, 2010
(permalink)
I've run into this same problem. I followed the steps to configure the AppPool to use NetworkService Identity, but the same problem occurs. I get the error:
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.
Reply
Genady Sergeev
Genady Sergeev
Posted
on Nov 2, 2010
(permalink)
Hi Albert Shenker,
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,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
Reply