1

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、SYSTEm、Administartor、Users) のすべての権限を Media フォルダーに設定しましたが、それでもエラーが発生します。この問題を解決するのを手伝ってください。前もって感謝します!

4

1 に答える 1

0

同じ問題があり、メディア フォルダーの内容を新しいフォルダーにコピーし、メディア フォルダーを削除し、新しいフォルダーの名前をメディアに変更し、IIS_IUSRS のアクセス許可を設定すると、問題が解決したようです。

于 2016-07-27T08:41:16.090 に答える