Im using umbraco 4.0.2.1 (cant upgrade to big a job due to all the custom stuff). I have a doctype with upload field property on document. Chossing images all works fine so i have already selected an image and saved all good. Now when i try to remove image by checking remove file checkbox then clicking save i get the following ysod error:
System.UnauthorizedAccessException: Access to the path
'C:\Inetpub\wwwroot\media\40691\moneyfacts_award.png' is
denied.
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\wwwroot\media\40691\moneyfacts_award.png' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at umbraco.editorControls.uploadField.deleteFile(String file)
at umbraco.editorControls.uploadField.Save()
The exists and network service has full permissions to it also the IIS_WPG account has access. Anyone else seen this issue?
upload field remove file issue
Guys,
Im using umbraco 4.0.2.1 (cant upgrade to big a job due to all the custom stuff). I have a doctype with upload field property on document. Chossing images all works fine so i have already selected an image and saved all good. Now when i try to remove image by checking remove file checkbox then clicking save i get the following ysod error:
System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\wwwroot\media\40691\moneyfacts_award.png' is denied.
The exists and network service has full permissions to it also the IIS_WPG account has access. Anyone else seen this issue?
Regards
Ismail
Maybe try a filesystem watcher and see what happens, http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Can you check the file permissions on that actual file? i assume the app pool is running under network services acct?
jay permissions are defintaely correct. Sjors good suggestion will give it a go
Regards
Ismail
Jay,
It was permissions issue network service did not have full control only read/write.
Regards
Ismail
Sweet, it did sound like that. Could this happen for all uploaded images?
is working on a reply...