服务器调用word出错了,前几天还好好的。咋回事呀?

woodyy 2011-02-28 10:14:19
Server Error in '/' Application.
--------------------------------------------------------------------------------

Creating an instance of the COM component with CLSID {00020906-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 8001010a.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Creating an instance of the COM component with CLSID {00020906-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 8001010a.

Source Error:


Line 102: object oTemplate = templateFile;
Line 103:
Line 104: Word.Document WordDoc = new Word.Document();
Line 105: //try
Line 106: //{


————————————————————————————————————————
救救我呀,这是什么问题呀,前几天在服务器上还好好的,现在就成这样了。

查了半天也没找到解决办法。

有朋友知道吗,十分感谢呀
...全文
222 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lxl_sports 2012-08-24
  • 打赏
  • 举报
回复
兄弟你最后采用那个方法解决的?我也出现这个问题了。
gujingqiu 2011-06-17
  • 打赏
  • 举报
回复
重新安装asp.net
子夜__ 2011-02-28
  • 打赏
  • 举报
回复
应该是权限的问题

1.开始->运行,输入dcomcnfg.exe

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

3.找到Microsoft Office Excel或者Microsoft Office Word点击右键->属性

4.选择安全,将启动和激活权限、访问权限、配置权限全部选择自定义,之后编辑,添加everyone用户,给它所有的权限
宝_爸 2011-02-28
  • 打赏
  • 举报
回复
8001010a好像是com server忙

参考下面的讨论
http://forums.asp.net/p/1244688/2296465.aspx
wuyq11 2011-02-28
  • 打赏
  • 举报
回复
检查DCOM操作权限,重新安装OFFICE
word效果不好,使用第三方控件

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧