紧急求助:ASP.NET访问权限的问题?
错误显示如下(我已经把所设计的文件夹都加上了ASP.NET的访问权限):
Server Error in '/xin' Application.
--------------------------------------------------------------------------------
Access 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 is denied.
The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.
To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column.
Source Error:
Line 85:
Line 86: If IsNothing(Application(Constant.Application_ExcelApplicaiton)) Then
Line 87: Dim aExcelApplication As New Excel.Application()
Line 88: Application(Constant.Application_ExcelApplicaiton) = aExcelApplication
Line 89: End If
Source File: c:\inetpub\wwwroot\Xin\Global.asax.vb Line: 87
Stack Trace:
[UnauthorizedAccessException: Access is denied.]
Xin.Global.Session_Start(Object sender, EventArgs e) in c:\inetpub\wwwroot\Xin\Global.asax.vb:87
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +525
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +692
System.Web.AsyncEventExecutionStep.Execute() +66
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0