一个操作Excel的问题
cbw99 2004-09-09 10:27:03 在运行“Application app = new Application();”这句话的时候程序总是报错说拒绝访问,说ASP.NET没有访问该资源的权限,请问这是怎么回事?该怎么解决?
错误信息如下:
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: 拒绝访问。
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.