PC Review


Reply
Thread Tools Rate Thread

How to avoid security alerts in Outlook Add in

 
 
Abhi.
Guest
Posts: n/a
 
      10th Sep 2008
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?

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      10th Sep 2008
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" "


 
Reply With Quote
 
Abhi.
Guest
Posts: n/a
 
      11th Sep 2008
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" "

>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Sep 2008
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" "

> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook security alerts BW Microsoft Access VBA Modules 2 6th Mar 2008 04:23 AM
how can we avoid security popup in Outlook 2003? =?Utf-8?B?TmFkZWVt?= Microsoft Outlook VBA Programming 6 12th Nov 2005 12:23 PM
Outlook security warning, possible to avoid it? Mads W. Microsoft C# .NET 0 24th Jun 2005 12:22 PM
Rules & Alerts - Developing an Alerts Web Service that Uses Outlook 2003 Alerts Andrew Denler Microsoft Outlook 0 26th Jan 2005 09:13 PM
How to avoid Outlook security warnings when using own Com Addin? MatrimCauthon Microsoft Outlook VBA Programming 4 2nd Apr 2004 08:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:05 PM.