错误:80070005访问被拒绝。 (来自HRESULT的异常:0x80070005(E_ACCESSDENIED))。 [英] Error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

查看:699
本文介绍了错误:80070005访问被拒绝。 (来自HRESULT的异常:0x80070005(E_ACCESSDENIED))。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在HTML中显示Microsoft Word文档时,我收到与ASP.Net授权相关的错误。我已经获得DCOMCNFG网络服务的许可---计算机----我的电脑----微软Word文档。请帮助我
解决此权限错误

I am getting error related for ASP.Net authorization while displaying Microsoft Word Document in HTML. I had already given permission for Network, Network Services in DCOMCNFG --- Computer ---- My Computer ---- Microsoft Word Document. Kindly help me to resolve this permission error

Line 17: public partial class Employer_jobseekerdetail : System.Web.UI.Page
Line 18: {
Line 19:     Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();
Line 20:     Microsoft.Office.Interop.Word.Document doc = new Microsoft.Office.Interop.Word.Document();
Line 21:     DataSet ds = new DataSet();







提前致谢

问候

Rajesh

推荐答案

在资源管理器中右键单击该文件,选择"属性" ;并选择"安全"选项卡。点击"添加"按钮添加适当的用户或组。突出显示ASP.NET帐户,并选中所需访问的框。

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.

如果将来要添加大量文件或更多文件。考虑给予文件夹权限。

In case there are lots of file or more files are to be added in future. Consider giving rights on folder.

您也可以尝试从管理员帐户运行ASP.Net,但这会造成安全威胁。

You can also try running ASP.Net from Admin account but that will pose security threat.


这篇关于错误:80070005访问被拒绝。 (来自HRESULT的异常:0x80070005(E_ACCESSDENIED))。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆