使用Microsoft.Office.Interop.Word在服务器中托管后出现404错误 [英] Getting 404 error after hosting in server while using Microsoft.Office.Interop.Word

查看:584
本文介绍了使用Microsoft.Office.Interop.Word在服务器中托管后出现404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft.Office.Interop.Word在我的网站中将单词转换为html。在服务器中托管后,我无法仅查看页面,我正在使用Microsoft.Office.Interop.Word。我收到404错误。



请帮帮我吧。

I am using Microsoft.Office.Interop.Word for converting word to html in my website. After hosted it in server i am not able to view the page only the page i am using Microsoft.Office.Interop.Word. i am getting 404 error.

Please help me to comeout of it.

推荐答案

我修复了给网络服务访问com对象的问题



1.转到MMC comexp.msc / 32

2.然后转到计算机 - >我的电脑 - > DCOM配置

3.选择Microsoft Office Word 97 - 2003文档右键单击转到属性。

4.在安全选项卡中选择启动和激活权限中的自定义。

5.单击编辑按钮并添加网络服务

6.允许本地启动和本地激活,然后单击确定。
I fixed the issue by giving network service access to com object

1. go to "MMC comexp.msc /32"
2. Then go to Computer->my computer->DCOM Config
3. select "Microsoft Office Word 97 - 2003 Document" right click go to properties.
4. in Security tab select Customize in Launch and Activation Permission.
5. Click Edit button and add Network service
6. Allow Local launch and local activation then click ok.


这篇关于使用Microsoft.Office.Interop.Word在服务器中托管后出现404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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