无法加载文件或程序集'Microsoft.Office.Interop.Word,版本= 12.0.0.0 [英] Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0

查看:826
本文介绍了无法加载文件或程序集'Microsoft.Office.Interop.Word,版本= 12.0.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我必须将asp.net报告转换为unicode的pdf.因此,我首先要生成Word文件&然后将其转换为pdf.它可以在本地正常工作.
但是当我将其上传到服务器时,出现以下错误.....
无法加载文件或程序集"Microsoft.Office.Interop.Word,版本= 12.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c"或其依赖项之一.找到的程序集的清单定义与程序集引用不匹配. (来自HRESULT的异常:0x80131040)

任何人都可以帮助我,这很紧急.

谢谢

Hello,

I have to convert an asp.net Report to pdf that is in unicode. So for this first i m generating word file & then Converting it into pdf. It works properly on local.
But When i Upload this to server i got the following error.....
Could not load file or assembly ''Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'' or one of its dependencies. The located assembly''s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Any one can help me out, it''s urgent.

Thanks

推荐答案

当我将其上传到服务器时,出现以下错误.
您的服务器未安装Office或已安装其他版本.确保安装了正确的Office版本,以使服务器上存在的程序集版本与您的应用程序期望的程序集匹配.
When i Upload this to server i got the following error.
Either your server does not has Office installed or has a different version installed. Make sure that the correct version of office is installed such that the versions of the assembly present on the server matches with the assembly expected by your application.


似乎需要更改DCOMCONFIG或单词...

请转到以下链接以获取有关Windows的DCOMCNFG.exe工具的帮助.

http://support.microsoft.com/kb/176799 [ http://www.dotnet247.com/247reference/msgs/22/110483.aspx [ ^ ]
it seems that the DCOMCONFIG needs to be altered or word...

please go to the following link for getting help on DCOMCNFG.exe tool of windows.

http://support.microsoft.com/kb/176799[^]

also the following link seems to be the workout

http://www.dotnet247.com/247reference/msgs/22/110483.aspx[^]


这篇关于无法加载文件或程序集'Microsoft.Office.Interop.Word,版本= 12.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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