You may experience compilation errors and run-time errors when you try to set the Visual Studio 2005 Tools for the Office System "Application" object to an "Outlook.Application" object (908431)
The information in this article applies to:
- Microsoft Visual Studio Tools for the Microsoft Office System version 2003
- Microsoft Office Outlook 2003
SYMPTOMSYou may experience the following errors when you try to set the Microsoft Visual Studio 2005 Tools for the Microsoft Office System Application object to an Outlook.Application object: - Compilation errors
- Run-time errors
CAUSEThe Microsoft Visual Studio Tools for the Microsoft Office System version 2003 Application object is derived from the Microsoft.Office.Interop.Outlook.Application interface. Therefore, a reference to the Visual Studio Tools for the Office System version 2003 Application object is functionally identical to a reference to the Outlook.Application object.
However, a reference to the Visual Studio 2005 Tools for the Office System Application object is not type identical to a reference to the Outlook.Application object. Instead, the Visual Studio 2005 Tools for the Office System Application object is a wrapper around the Outlook.Application object. Therefore, a reference to the Visual Studio 2005 Tools for the Office System Application object is not functionally identical to a reference to the Outlook.Application object.WORKAROUNDTo work around this issue, change all code references of the Microsoft.Office.Interop.Outlook.Application interface to one of the following references: - The Microsoft.Office.Tools.Outlook.Application interface
- The yournamespace.Application interface
REFERENCESFor more information about Outlook objects, visit the following Microsoft Developer Network (MSDN) Web sites:
Modification Type: | Minor | Last Reviewed: | 2/3/2006 |
---|
Keywords: | kbtshoot kbprb KB908431 kbAudDeveloper |
---|
|