无法装入文件或程序集的Microsoft.Office.Interop。前景,Version = 12.0.0.0、文化=中立,都必须= 71 e9bce111e9429c

时间:2022-09-15 03:14:43

I have a vs2010 wpf application that is connecting to outlook.

我有一个vs2010 wpf应用程序,它连接到outlook。

My pc is windows 7 64bit with office 2003, one of my target pc is xp 32 bit also with office 2003.

我的pc是windows 7 64位和office 2003,我的目标pc之一是xp 32 bit也与office 2003。

I tried to update the version in the target pc and one of the application feature is to choose outlook folder, when i am trying to choose a folder from the outlook i am getting this exception :

我尝试在目标pc上更新版本,其中一个应用程序功能是选择outlook文件夹,当我试图从outlook中选择一个文件夹时,我得到了这个异常:

Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'

无法装入文件或程序集的Microsoft.Office.Interop。前景,Version = 12.0.0.0、文化=中立,都71 e9bce111e9429c

Thanks

谢谢

Danny

丹尼

1 个解决方案

#1


1  

On your dev machine you've added a reference to the wrong version of the office dlls. Try removing the reference to Microsoft.Office.Interop.Outlook and add it back again, but when you do, verify what version you're adding, there will likely be multiple ones. Version 12 is office 2007 and version 11 is 2003 I believe.

在您的dev机器上,您添加了对错误版本的office dll的引用。尝试删除对Microsoft.Office.Interop的引用。Outlook并将其添加回来,但是当你做的时候,验证你添加的版本,可能会有多个版本。第12版是office 2007,第11版是2003年版。

#1


1  

On your dev machine you've added a reference to the wrong version of the office dlls. Try removing the reference to Microsoft.Office.Interop.Outlook and add it back again, but when you do, verify what version you're adding, there will likely be multiple ones. Version 12 is office 2007 and version 11 is 2003 I believe.

在您的dev机器上,您添加了对错误版本的office dll的引用。尝试删除对Microsoft.Office.Interop的引用。Outlook并将其添加回来,但是当你做的时候,验证你添加的版本,可能会有多个版本。第12版是office 2007,第11版是2003年版。