FIX: is to set Write permissions to TRUE on the Security tab (within folder properties) for the IIS_WPG (DOMAIN_NAME\IIS_WPG) Group
on C:\Inetpub\wwwroot\websitefolder\images\ folder on the VPS.
As default for most folders, the only Groups with Write permissions are:
i) Administrators (DOMAIN_NAME\Administrators)
ii) OWS_3894452191_admin (DOMAIN_NAME\OWS_3894452191_admin)
iii)SYSTEM
Friday, 29 July 2011
System.UnauthorizedAccessException Access to the path 'c:\inetpub\wwwroot\websitefolder\images\image.jpg' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at System.Web.UI.WebControls.FileUpload.SaveAs(String filename) at website.uploadClass.HasFile(Object sender, EventArgs e)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment