7.2.8 Uploading Media: Site randomly throws "The process cannot access the file..."
When uploading any type of media in the backoffice sometimes the upload will fail with this exception message...
"Message": "An error has occurred.",
"ExceptionMessage": "The process cannot access the file 'E:\\inetpub\\wwwroot\\UmbracoFolder\\App_Data\\TEMP\\FileUploads\\BodyPart_4c178317-ad31-4982-ae46-4e38024561f0' because it is being used by another process.",
"ExceptionType": "System.IO.IOException",
"StackTrace":"at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n at System.IO.File.InternalDelete(String path, Boolean checkHost)\r\n at System.IO.File.Delete(String path)\r\n at Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)\r\n at System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecuted(HttpActionContext actionContext, HttpResponseMessage response, Exception exception)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<>c__DisplayClass2.<System.Web.Http.Filters.IActionFilter.ExecuteActionFilterAsync>b__1(CatchInfo`1 info)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<>c__DisplayClass4`1.<Catch>b__3()\r\n at System.Threading.Tasks.TaskHelpersExtensions.CatchImpl[TResult](Task task, Func`1 continuation, CancellationToken cancellationToken)"
Waiting about 2 seconds and resaving allows the file to go through
The IIS user has full control permissions, nothing is displayed in either the iis logs nor the umbraco logs.
Found this bug which seems like the same thing. http://issues.umbraco.org/issue/U4-4049 However it states it is fixed (I am using 7.2.8) and no solutions offered there work or I have already tried.
7.2.8 Uploading Media: Site randomly throws "The process cannot access the file..."
When uploading any type of media in the backoffice sometimes the upload will fail with this exception message...
Waiting about 2 seconds and resaving allows the file to go through
The IIS user has full control permissions, nothing is displayed in either the iis logs nor the umbraco logs.
Found this bug which seems like the same thing. http://issues.umbraco.org/issue/U4-4049 However it states it is fixed (I am using 7.2.8) and no solutions offered there work or I have already tried.
Hello!
Having the same problem as you've described, did you have any success in fixing it?
This workaround worked for me:
{umbraco}/App_Data/TEMP
FileUploads
directoryThis released whatever file lock was on the folder. I was then able to upload a file in the frontend and it didn't throw the error.
Cheers
is working on a reply...