Reputation: 904
While developing inside VS2013 using the built in IIS Express Web Server I created a Documents folder within my Application folder to upload files to. When trying to save a file I am using:
string uploadedFile = @"C:\dev\myApps\Application1\Documents\uploadedFile.pdf";
file.SaveAs(uploadedFile );
I added full control permissions to the Documents folder for IIS_IUSRS, NETWORK, NETWORK SERVICE. Still nothing.
Upvotes: 0
Views: 1526
Reputation: 10285
Try this:
"Access to the path 'xxxxxx' is denied."
As error says you need to assign permissions to folders
IIS_IUSRS
(Full Control)Full Control
in allowNote: if the above steps are not working, then try to give same permission to NETWORK
, NETWORK SERVICE
users
Upvotes: 1