![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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" " And there is options of 1,5,10,15 mins so how can I disable or hide this? |
#2
|
|||
|
|||
![]()
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" " |
#3
|
|||
|
|||
![]()
Thanks for your reply I have done..
private void _items_ItemAdd(object Item) { try { Microsoft.Office.Interop.Outlook._AppointmentItem objAppointmentItem = (Microsoft.Office.Interop.Outlook._AppointmentItem )Item; here I access, - objAppointmentItem.Body - objAppointmentItem.Subject etc } } so here when I get in to objAppointmentItem I get security alert. Even I tried taking object at class level. What should I do? Thanks. "Sue Mosher [MVP-Outlook]" wrote: 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" " |
#4
|
|||
|
|||
![]()
You should look at how the _items collection is derived. And its parent
Folder or MAPIFolder object, and any other parent objects up to the original Outlook.Application object, which must be derived from the add-in archecture, as indicated earlier. -- 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: Thanks for your reply I have done.. private void _items_ItemAdd(object Item) { try { Microsoft.Office.Interop.Outlook._AppointmentItem objAppointmentItem = (Microsoft.Office.Interop.Outlook._AppointmentItem )Item; here I access, - objAppointmentItem.Body - objAppointmentItem.Subject etc } } so here when I get in to objAppointmentItem I get security alert. Even I tried taking object at class level. What should I do? Thanks. "Sue Mosher [MVP-Outlook]" wrote: 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" " |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Avoid Security Prompts | SHIPP | Outlook and VBA | 2 | April 17th 08 07:26 PM |
Avoid outlook security warning message. | ashish taralekar | Outlook - Using Forms | 1 | April 11th 07 06:06 PM |
Outlook on two computers - how to avoid duplicate messages | Alpha | Outlook - General Queries | 2 | April 5th 07 09:14 PM |
Disable security alerts | Keith 'StarPilot' Barrows | Outlook and VBA | 7 | February 4th 06 06:51 PM |
Is there a way to avoid needing to "allow" outlook security to send email? | Mr . . | Outlook - Using Forms | 1 | January 28th 06 03:18 PM |