Orchardcms Orchard无法访问媒体文件-访问被拒绝

Orchardcms Orchard无法访问媒体文件-访问被拒绝,orchardcms,Orchardcms,我试图在Orchard amdin页面中插入图片,但出现错误 An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back The folder could not be created at path: . System.UnauthorizedAccessException: Access to the p

我试图在Orchard amdin页面中插入图片,但出现错误

An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back

The folder could not be created at path: . System.UnauthorizedAccessException: Access to the path 'D:\Projects\MySite.Web\Media\Default' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj) at Contrib.MediaFolder.Services.RemoteStorageProvider.ListFolders(String path)

System.ArgumentException: The folder could not be created at path: . System.UnauthorizedAccessException: Access to the path 'D:\Projects\MySite.Site.Web\Media\Default' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj) at Contrib.MediaFolder.Services.RemoteStorageProvider.ListFolders(String path) at Contrib.MediaFolder.Services.RemoteStorageProvider.ListFolders(String path) at Orchard.Media.Services.MediaService.GetMediaFolders(String relativePath) at Orchard.MediaPicker.Controllers.AdminController.Index(String name, String mediaPath) at lambda_method(Closure , ControllerBase , Object[] ) 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.b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)

我已经为所有用户设置了所有权限IUSR、系统、管理员、用户到媒体文件夹,但仍然出现错误。请帮我解决这个问题。提前谢谢

我遇到了同样的问题,将媒体文件夹的内容复制到新文件夹,删除媒体文件夹,将新文件夹重命名为媒体,并为IIS\u IUSR设置权限,似乎解决了问题。

是否检查了应用程序池运行的用户?确保该用户有权修改该文件夹。另一个需要检查的是,它不是只读的,这很容易被忽略。