先生,请告诉我我为这个问题做了什么? [英] Sir Please Tell Me What I Do For This Problem?

查看:69
本文介绍了先生,请告诉我我为这个问题做了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Access to the path 'C:\inetpub\wwwroot\onlinedoctorspool.com\ImageStorage\gdfgd.jpg' 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 'C:\inetpub\wwwroot\onlinedoctorspool.com\ImageStorage\gdfgd.jpg' 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) 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 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.

推荐答案

由于错误声明您需要允许访问ASPNET到相关文件夹。



读取了这个授予文件访问权限 [ ^ ]
As the error states you need to allow access for ASPNET to the folder in question.

have a read of this Granting File Access Permissions[^]


与完全权限相关的问题。可以做两件事。首先尝试以管理员模式运行IIS,然后第二件事提供对IIS的充分访问以使用指定的文件。为此分配所有对IUser特定目录的依据
its totally permission related issue. two things can be done. First of all try running your IIS in administrator mode and second thing provide sufficient access to IIS to use specified file .For that assign All the accces to specific directory for IUser


http://www.wikihow.com/Change-File-Permissions-on-Windows-7 [< a href =http://www.wikihow.com/Change-File-Permissions-on-Windows-7target =_ blanktitle =New Window> ^ ]


这篇关于先生,请告诉我我为这个问题做了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆