windows 2008 下C#调用office组件访问拒绝的解决方法(failed due to the following error: 80070005 拒绝访问)
2013-08-19 18:38
911 查看
"组件服务"- >"计算机"- >"我的电脑"- >"DCOM配置"->找到word->属性->"标识"标签,选择"交互式用户"
->安全"标签"->在"启动和激活权限"上点击"自定义",然后点击对应的"编辑"按钮,在弹出的"安全性"对话框中填加 一个"NETWORK SERVICE"用户(注意要选择本计算机名),并给它赋予"本地启动"和"本地激活"权限.
->"安全"标签,在"访问权限"上点击"自定义",然后点击"编辑",在弹出的"安全性"对话框中也填加一个"NETWORK SERVICE"用户,然后赋予"本地访问"权限. 这样,我们便配置好了相应的Excel的DCOM权限.
64位系统下会找不到OFFICE组件,解决办法:
1.运行:mmc -32
2.打开“文件”-“添加或删除管理单元”-选择组件服务-点击添加-确定。
3.可以在DCOM组件中找到Microsoft Excel Application了。
最后在设置:
检查IIS7的设置,最后确定还需要设置应用程序池的标识,把此网站的AppPool的标识要设置为LocalSystem或者NetworkService,问题解决。
这样问题将会解决
[b]备注:(如果出现注销服务器后就报错“error: 8000401a 因为配置标识不正确,系统无法开始服务器进程。请检查用户名和密...”,就把交互式用户换成“下列用户”然后输入管理员帐号密码,问题搞定!!!!)[/b]
->安全"标签"->在"启动和激活权限"上点击"自定义",然后点击对应的"编辑"按钮,在弹出的"安全性"对话框中填加 一个"NETWORK SERVICE"用户(注意要选择本计算机名),并给它赋予"本地启动"和"本地激活"权限.
->"安全"标签,在"访问权限"上点击"自定义",然后点击"编辑",在弹出的"安全性"对话框中也填加一个"NETWORK SERVICE"用户,然后赋予"本地访问"权限. 这样,我们便配置好了相应的Excel的DCOM权限.
64位系统下会找不到OFFICE组件,解决办法:
1.运行:mmc -32
2.打开“文件”-“添加或删除管理单元”-选择组件服务-点击添加-确定。
3.可以在DCOM组件中找到Microsoft Excel Application了。
最后在设置:
检查IIS7的设置,最后确定还需要设置应用程序池的标识,把此网站的AppPool的标识要设置为LocalSystem或者NetworkService,问题解决。
这样问题将会解决
[b]备注:(如果出现注销服务器后就报错“error: 8000401a 因为配置标识不正确,系统无法开始服务器进程。请检查用户名和密...”,就把交互式用户换成“下列用户”然后输入管理员帐号密码,问题搞定!!!!)[/b]
相关文章推荐
- windows 2008 下C#调用office组件访问拒绝的解决方法(failed due to the following error: 80070005 拒绝访问)
- windows 2008 下C#调用office组件访问拒绝的解决方法(failed du
- 无法访问Word组件,failed due to the following error: 80070005 拒绝访问。
- 异常:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 拒绝访问
- failed due to the following error: 80070005 拒绝访问
- 关于Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005的解决办法
- failed due to the following error: 80070005解决办法. (转)
- failed due to the following error: 80070005解决办法.
- C# Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005
- failed due to the following error: 80070005解决办法
- Retrieving the COM class factory for component with CLSID {000209FF-XXX} failed due to the following error: 80070005 Access is denied.
- Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005
- Retrieving the COM class factory for component with CLSID … failed due to the following error: 80070005.
- Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
- Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
- CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80040154. 错误的解决办法
- Retrieving the COM class factory for component with CLSID … failed due to the following error: 80070005.
- COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.(转载)
- COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
- Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005