我应授予用户帐户最低的访问权限/权限以运行我的Office应用程序

我应授予用户帐户最低的访问权限/权限以运行我的Office应用程序

问题描述:

我的应用程序是在C#.net中开发的,它使用Interop.word 12.0汇编库读取word文件的内容.

现在,当我使用XP上的Administrator帐户登录时,它可以正常工作,但是如果我使用受限访问权限的用户帐户登录,则会抛出以下异常

从IClassFactory创建具有CLSID [XXX.XX.XX.XX]的com组件实例失败,错误80010001"

很明显,这是访问权限问题.

现在我应该给XP中的用户帐户最小的访问权限/权限,以运行我的Office应用程序.

My application developed in C#.net, which reads content of word file.using Interop.word 12.0 assembly library.

now when i login with Administrator account on XP it works fine but if i login with limited access user account it throws following exeption

"Creating an instance of com component with CLSID [XXX.XX.XX.XX] from the IClassFactory failed with error 80010001"

It is clear that this is access permission issue.

now what minimum access permission/rights should i give to user account in XP to run my office application

我遇到了与您的问题相似的问题.我要做的是:
I''ve had problem resembling yours. What I had to do:

  1. 打开注册表(从"Run"命令提示符运行regedit.exe)并搜索错误的CLSID值
  2. 找到CLSID时,确定组件名称
  3. 打开组件服务(控制面板->管理工具->组件服务,或从运行"命令提示符下运行dcomcnfg.exe)
  4. 按名称查找组件
  5. 查看组件权限并在更新时进行更新必填

  1. Open registry (running regedit.exe from "Run" command prompt) and search for CLSID value in error
  2. When CLSID found, determine component name
  3. Open Component Services (Control Panel -> Administrative Tools -> Component services, or running dcomcnfg.exe from "Run" command prompt)
  4. Find component by its name
  5. View component permissions and update them if required



注意:根据您的操作系统,您最初可能无法编辑组件的权限.要解锁此功能,您需要更改组件的所有权,如此处 [ [



Note: depending on your OS, you may initially be unable to edit permissions on component. To unlock this feature you need to change ownership on component, as described here[^]

Hope this helps


使用以下链接
单词的NTFS权限 [ ^ ]
use the following link
NTFS permissions for word[^]