产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 求助:升级到11.21出现的错误
qjschool - 2012/12/9 20:39:59
School1模版,最后更新应该是10.8,今天下载了11.21的更新,按要求复制后运行update,点击“升级”后出现:


Server Error in '/' Application.

Access to the path 'pageadmin.en.resx' 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 'pageadmin.en.resx' 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 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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[UnauthorizedAccessException: Access to the path 'pageadmin.en.resx' is denied.]
   System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive) +2830880
   System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive) +203
   ASP.update_aspx.Del_Dir() +523
   ASP.update_aspx.Update(Object Src, EventArgs e) +46
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
xiyou - 2012/12/10 8:47:47
目录没有写权限和删除权限导致的。
qjschool - 2012/12/10 13:25:21
非常感谢xiyou大大,解决了,原先有写入权限,加了删除权限可以了
干脆给everyone全部权限,应该没问题吧?
1
查看完整版本: 求助:升级到11.21出现的错误