Как дать разрешение папке на чтение изображения на сервере.
How to give permisson to a folder to read image on server.
Я использую сервер WINSCP , здесь я загружаю свой файл..
Я много гуглил, но до сих пор не могу найти никакого решения..
Пожалуйста, ответь мне..
Что я уже пробовал:
Server Error in '/' Application. Access to the path 'D:\WEBDATA\weblinkservices.in\Admin\Uploads\Photo Gallery\18' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access to the path 'D:\WEBDATA\weblinkservices.in\Admin\Uploads\Photo Gallery\18' is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access. Source Error: Line 82: { Line 83: string GalleryPath = System.Configuration.ConfigurationManager.AppSettings["GalleryPath"] + MaxGalleryId; Line 84: Directory.CreateDirectory(Server.MapPath(GalleryPath)); Line 85: Line 86: string ThumbnailPath = System.Configuration.ConfigurationManager.AppSettings["ThumbnailPath"] + MaxGalleryId; Source File: d:\webdata\weblinkservices.in\Admin\AddGallery.aspx.cs Line: 84 Stack Trace:
F-ES Sitecore
Щелкните правой кнопкой мыши папку и выберите пункт Свойства, а затем используйте вкладку Безопасность, чтобы применить нужные права доступа.