kx2226833 - 2010/10/31 16:22:00
我在后台删除图片时出现以下提示
Server Error in '/' Application.
--------------------------------------------------------------------------------
Access to the path 'E:\pacms\upload\information\2009-04\25170744.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 'E:\pacms\upload\information\2009-04\25170744.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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[UnauthorizedAccessException: Access to the path 'E:\pacms\upload\information\2009-04\25170744.jpg' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2013667
System.IO.File.Delete(String path) +157
PageAdmin.information_1.xd13d71035a257208(Int32 xe1be63ed242ed1fd) +612
PageAdmin.information_1.x195386ed7dd3431f(String xcc73173c60d9e1a3) +179
PageAdmin.information_1.Page_Load(Object src, EventArgs e) +3448
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
显示为只读无法删除啊晕
kx2226833 - 2010/10/31 16:34:00
算了我自己解决了是由于everyone账户没有赋予完全控制权限造成的:L