We help IT Professionals succeed at work.

Initialization error trying to use outlook send method

Hagita
Hagita asked
on
I get this Initialization error loading my project. I just added some code to send email using Microsoft.Office.Interop.Outlook. this is the error message:

Assembly 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
Comment
Watch Question

Author

Commented:
I also get a warning saying:

Ambiguity between method 'Microsoft.Office.Interop.Outlook._MailItem.Send()' and non-method 'Microsoft.Office.Interop.Outlook.ItemEvents_10_Event.Send'. Using method group.      

help please..
Most Valuable Expert 2011
Top Expert 2015
Commented:
You have a reference to the v11 Outlook library, but you (i.e. your Office reference) need a reference to the v12 Outlook library. Drop the v11 reference and add a ref to v12.

Author

Commented:
I dont have it in my reference list. where can it be downloaded?