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:
Line 140: object filename = "Files/aaa";
Line 141: object Nothing=System.Reflection.Missing.Value;
Line 142: Word.Application WordApp=new Word.ApplicationClass();
Line 143: Word.Document WordDoc=WordApp.Documents.Add(ref Nothing,ref Nothing,ref Nothing,ref Nothing);
Line 144:
这个错误怎么解决阿,谢谢
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:
Line 140: object filename = "Files/aaa";
Line 141: object Nothing=System.Reflection.Missing.Value;
Line 142: Word.Application WordApp=new Word.ApplicationClass();
Line 143: Word.Document WordDoc=WordApp.Documents.Add(ref Nothing,ref Nothing,ref Nothing,ref Nothing);
Line 144:
这个错误怎么解决阿,谢谢
解决方案 »
- C#中 ASCII 与字符串的相互转化
- CSV文件格式问题
- DirectX 9.0c没有sdk吗?
- 关于接口继承的问题,继承接口的类,不是实现接口的方法,子类才实现,怎么写?
- 组件的问题
- MVP级的再来,如果在类的外部确定一个EventHandler成员是否为空
- winform中的datagrid用法请教!刚用又急。谢谢大家来完善!!
- 这样有错吗,我不明白?111111111
- 用两个adapter同时fill同一个dataset的同一张表的问题。
- 初学者请教:“当前上下文中不存在名称“ ” 怎么解决?
- 使自已开发的WORD COM组件只在iexplorer.exe启动时加载
- C#中数据绑定与radioBotton的BUG?
设置一下它的权限