可以Microsoft.office.interop.word.dll无需安装办公? [英] Can Microsoft.office.interop.word.dll work without installing office?

查看:1602
本文介绍了可以Microsoft.office.interop.word.dll无需安装办公?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的ASP.Net C#应用程序使用邮件合并和名称Microsoft.Office.Interop.Word.dll V14.0.0.0的DLL。一切都很好,我的台式机(安装处)上。然而,当该应用程序部署在生产机器上,下面的错误被抛出:

My ASP.Net-C# application works with mailmerge and the dll by name Microsoft.Office.Interop.Word.dll V14.0.0.0. All is well on my desktop (where office is installed). However when this application is deployed on the production machine, the following error is thrown:

System.Runtime.InteropServices.COMException(0x80040154的):检索COM类工厂具有CLSID组件{000209FF-0000-0000-C000-000000000046}失败,原因是出现以下错误:80040154没有注册类(从HRESULT异常:0x80040154的(REGDB_E_CLASSNOTREG))。

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

在类被注册,发现了以下错误:

When the class is registered, the following error is found:

微软.Office.Interop.Word.dll已加载,但找不到入口点的DLLRegisterServer。确保,这是一个有效的DLL或OCX,然后再试一次。

Microsoft.Office.Interop.Word.dll was loaded but the entry-point DLLRegisterServer was not found. Make sure, this is a valid dll or OCX and try again.

我该如何解决这个问题? Office套件不能安装在生产机器上。

How do I fix this problem? Office suite can't be installed on the production machine.

推荐答案

没有,互操作的库是刚刚超过实处壳库代码。因此,你需要在您的应用程序正在运行

No, the Interop libraries are just a shell over the real Office library code. Thus you need to have Office installed where your app is running

这篇关于可以Microsoft.office.interop.word.dll无需安装办公?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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