Error using VSTO 2005 Outlook Addin with VS2005 RC1

Published 22 September 05 02:29 PM | madsn

Just installed Visual Studio 2005 RC1 and reinstalled Visual Studio Tools for Office 2005 Outlook on top to continue working on my Outlook Add-in. When trying to cast a MailItem object i recieved the following error:

System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook.MailItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063034-0000-0000-C000-000000000046}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))..

Seems like something didn't register properly and after performing the following operation from the Visual Studio 2005 Command Prompt (in a folder containing the dll) I was back up and running:

regasm Microsoft.Office.Interop.Outlook.dll

Comments

# Lucy Sutton said on October 12, 2005 07:06 AM:

Hi James!

I am looking for a Sharepoint Administrator to work in a Reading based large Bluechip. If this sounds interesting to you, please contact me.

Regards,

Lucy

lucy.sutton@elanit.co.uk
0207 830 1351

# evellineiris said on August 17, 2007 10:21 AM:

Welcome for my site

My forum

Leave a Comment

(required) 
(required) 
(optional)
(required) 

This Blog

<a name="MyWork">!My work!</a>

Funstuff

Goodies

MSCRM Blogs

Sharepoint

Useful reading

Weblogs

Syndication