Sounds like you are not constructing your add-in correctly so that it derives
all Outlook objects from the Outlook.Application object exposed by the add-in
architecture. The details will depend on whether it's a shared or VSTO
add-in. See
http://www.outlookcode.com/article.aspx?ID=52
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Abhi." wrote:
Hello,
In my VS 2005 C#Outlook Add in when in Item_Add event I access Item
information of that Item in order to save this information I am getting,
" A program is trying to access e-mail addressess you have stored in
Outlook.Do you want to allow this?
If this is unexpected, it may be virus and you should choose "No" "