A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to avoid security alerts in Outlook Add in



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 10th 08, 04:22 PM posted to microsoft.public.outlook.program_forms
Abhi.[_2_]
external usenet poster
 
Posts: 3
Default How to avoid security alerts in Outlook Add in

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  
Old September 10th 08, 06:29 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to avoid security alerts in Outlook Add in

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  
Old September 11th 08, 02:07 PM posted to microsoft.public.outlook.program_forms
Abhi.[_2_]
external usenet poster
 
Posts: 3
Default How to avoid security alerts in Outlook Add in

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  
Old September 11th 08, 03:14 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to avoid security alerts in Outlook Add in

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
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.