简体   繁体   中英

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

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

My pc is windows 7 64bit with office 2003, one of my target pc is xp 32 bit also with 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 :

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

Thanks

Danny

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM