Asp.Net操作Word内容“System.Runtime.InteropServices.COMException: 命令失败”的解决方法
2009-09-18 14:08
591 查看
Asp.Net操作Word内容
如果要正常操作Word Com组件的话,必须要给用户赋上足够的权限的,以下是我找问高手,和上网上查到的。如果不这样的话,应该不能操作Word
,会出现异常
1、运行Dcomcnfg.exe
2、组件服务――计算机――我的电脑――DCOM配置――找到microsoft word 文档
3、点击属性
4、选择“安全性”
5、选定“使用自定义访问权限”和“使用自定义启动权限”
6、分别编辑权限,添加ASPNET,VS Developers,Debugger User
7、选择“身份标识”,在选定“交互式用户” 即可 (关键步骤)
8、在Web.config里加 <identity impersonate="true"/>
如果要正常操作Word Com组件的话,必须要给用户赋上足够的权限的,以下是我找问高手,和上网上查到的。如果不这样的话,应该不能操作Word
,会出现异常
1、运行Dcomcnfg.exe
2、组件服务――计算机――我的电脑――DCOM配置――找到microsoft word 文档
3、点击属性
4、选择“安全性”
5、选定“使用自定义访问权限”和“使用自定义启动权限”
6、分别编辑权限,添加ASPNET,VS Developers,Debugger User
7、选择“身份标识”,在选定“交互式用户” 即可 (关键步骤)
8、在Web.config里加 <identity impersonate="true"/>
相关文章推荐
- System.Runtime.InteropServices.COMException 检索COM类工厂中CLSID{xxxxxxxxx}的组件时失败解决方法
- System.Runtime.InteropServices.COMException 检索COM类工厂中CLSID{xxxxxxxxx}的组件时失败解决方法
- Visual Studio 2008 – ASP.NET “System.Runtime.InteropServices.COMException”
- c#程序在部分电脑运行异常解决方法(System.Runtime.InteropServices.COMException (0x80070422): 无法启动服务)
- System.Runtime.InteropServices.COMException的解决方法
- Visual Studio 2008项目System.Runtime.InteropServices.COMException解决方法
- “System.Runtime.InteropServices.COMException (0x80070422): 无法启动服务”解决方法
- System.Runtime.InteropServices.COMException的解决方法
- System.Runtime.InteropServices.COMException (0x800706BA) 解决方法
- 完美解决“换另一台电脑上用VS2008继续开发web项目时出现“System.Runtime.InteropServices.COMException”,然后是加载不了项目。”
- 解决System.Runtime.Interopservices.COMException问题
- “System.Runtime.InteropServices.COMException”解决之道
- System.Runtime.InteropServices.COMException: 检索 COM 类工厂中 CLSID 为 {0002E510-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 80040154
- System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况 问题的解决
- System.Runtime.InteropServices.COMException解决办法
- windows server 2008 x6 System.Runtime.InteropServices.COMException (0x800A03EC)處理方法
- 解决System.Runtime.Interopservices.COMException问题
- “System.ServiceModel.DomainServices.Client.DomainOperationException:查询"XXX"load操作失败,远程服务器返回了错误:NoFound.……”解决方法
- C#读写Word文档异常处理解析System.Runtime.InteropServices.COMException
- C#读写Word文档异常处理解析System.Runtime.InteropServices.COMException