|
|
A site was created for a client, then moved from development in to production. She has recently contacted me to report that she is unable to delete any documents which were uploaded to the Media file *prior* to the site migration to the new server.
Documents which she added *after* the migration can be deleted, however. When she tries to delete one of the old docs, she gets the following:
An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back
Access to the path 'F:\web\avillage\LungBio\Media\Default\documents\sops\LCBRN_SOP1_SOPdocumentation.docx' is denied.
System.UnauthorizedAccessException: Access to the path 'F:\web\avillage\LungBio\Media\Default\documents\sops\LCBRN_SOP1_SOPdocumentation.docx' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileInfo.Delete()
at Orchard.FileSystems.Media.FileSystemStorageProvider.DeleteFile(String path) in c:\Users\sebros\My Projects\Orchard\src\Orchard\FileSystems\Media\FileSystemStorageProvider.cs:line 212 at Orchard.Media.Services.MediaService.DeleteFile(String folderPath, String
fileName) at Orchard.Media.Controllers.AdminController.Edit(FormCollection input) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext
controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
Any suggestions on fixing this are greatly appreciated!
|
|