Excel.Application myexcel=new Excel.ApplicationClass();
myexcel.Application.Workbooks.Add ( true ) ;
myexcel.Visible=true;
myexcel.Cells[1,4]="aaa";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. 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 write 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: 我的权限是本地管理员权限。为什么会有访问被拒绝的问题啊,请大家指点
myexcel.Application.Workbooks.Add ( true ) ;
myexcel.Visible=true;
myexcel.Cells[1,4]="aaa";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. 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 write 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: 我的权限是本地管理员权限。为什么会有访问被拒绝的问题啊,请大家指点
解决方案 »
- 发送请求断掉如果取消这个进程
- 急急急!如何实现在客户端检测是否安装Activex控件,然后实现自动安装?
- 三层 BLL static 性能 问题???
- 读取网页中上传文本的内容的问题
- datalist 3列固定行数如何实现
- 用Response.Redirec跳转到新的页面又跳回来,但Page_Load代码不执行?解决就给分,在线等待。
- vs 2005 中文180天测试版
- 十万火急,求助asp.net的问题!!
- 如何调用父窗口下的前台javascript的函数??是用window.open()打开的。
- 初级问题:ACCESS中有没有键约束
- 如何在Calendar的日期下面加入文字
- 求一简单SQL语句
<identity impersonate="true"/>
试试。