在&QUOT访问Office Word对象模型通过asp.net的结果;失败,原因是以下错误:80070005访问被拒绝" [英] Accessing Office Word object model through asp.net results in "failed due to the following error: 80070005 Access is denied."

查看:303
本文介绍了在&QUOT访问Office Word对象模型通过asp.net的结果;失败,原因是以下错误:80070005访问被拒绝"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个网站,允许用户上传的Office文档,然后使用Office对象模型来将文档转换为HTML文件,它然后显示在一个iFrame。

I have developed a website that allows users to upload office documents then uses the office object model to convert the document to an HTML file that it then displays in an iFrame.

我,当然包括以Office.interop.word引用,并且该网站工作正常我的开发机器上。直到我尝试上载文件时,我上传到我的生产服务器的站点功能罚款。我最初得到了类似的错误,上面写着COM对象未注册。我意识到,这个词是不是我的生产服务器上安装。所以我安装了字,现在的当服务器试图访问我收到以下错误Word对象模型:

I have, of course, included references to Office.interop.word, and the site works fine on my development machine. When I uploaded it to my production server the site functions fine until I try to upload a document. I initially got a similar error that said "COM object not registered". I realized that Word wasn't installed on my production server. So I installed word and now when the server tries to access the word object model I receive the following error:

检索COM类工厂具有CLSID组件{000209FF-0000-0000-C000-000000000046}失败,原因是出现以下错误:80070005访问被拒绝。 (异常来自HRESULT:0X80070005(E_ACCESSDENIED))

我搜索了相应的CLSID注册表,发现了相应的文件夹。我说完全控制IUSR_帐户,由于我最终加入完全控制每个人错误的持久性,并确保这些权限继承下来到该文件夹​​的其余部分。然后我说完全控制IUSR_并再次加入,最终完全控制到每个人到我的Microsoft Office文件夹。

I searched the registry for the corresponding CLSID and found a corresponding folder. I added full control to the IUSR_ account and due to the persistence of the error I eventually added full control to "everyone" and ensured these permissions inherited down to the rest of the folder. I then added full control to IUSR_ and again eventually added full control to "everyone" to my microsoft office folder.

我不知道什么授予其他权限和其中为了使这个访问被拒绝的错误走了。我必须在错误的地方要给予他们,因为据我知道我不会比所有人完全控制。

I don't know what other permissions to grant and where in order to make this "Access is denied" error go away. I must be granting them in the wrong place, because as far as I know I can't be any more permissive than "Everyone" "Full Control".

任何人都可以摆脱任何轻?

Can anyone shed any light?

推荐答案

这为我工作:


  1. 在命令行中把DCOMCNFG

  2. 组件服务 - >计算机 - >我的电脑 - > DCOM配置

  3. 找到Microsoft Word 97中 - 2003文档(如果缺少检查,如果您的Word也是64位(如果你的Windows是))

  4. 右键单击 - >属性

  5. 转到选项卡安全性和编辑自定义单选按钮,这样IIS_IUSRS可能对启动和访问权限

  6. 转到身份标签,然后选择交互式用户

  7. 应用更改,然后重试

  8. 如果这一切都失败了,也去常规标签,并在身份验证级别下拉菜单中选择无。

  1. In the command line put DCOMCNFG
  2. Component Services -> Computers -> My Computer -> DCOM Config
  3. Find "Microsoft Word 97 - 2003 Document" (If it is missing check if your Word is also 64 bit (if your Windows is))
  4. Right click -> Properties
  5. Go To Tab Security and Edit the "Customize" radio buttons so that IIS_IUSRS could have rights for launch and access
  6. Go to Tab Identity and choose "The interactive user"
  7. Apply changes and try again
  8. If all this fails, go also to tab "General" and in "Authentication Level" drop down choose "None".

这篇关于在&QUOT访问Office Word对象模型通过asp.net的结果;失败,原因是以下错误:80070005访问被拒绝"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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