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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

dialog comes up when trying to access mailItem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 16th 06, 04:45 AM posted to microsoft.public.outlook.program_addins
Neo
external usenet poster
 
Posts: 3
Default dialog comes up when trying to access mailItem

I am writing an Outlook COM add-in in C# .NET. When I try to access mail
item, An outlook dialog box comes up asking:



A program is trying to access e-mail addresses you have stored in Outlook.
Do you want to allow this?

If this is unexpected, it may be a virus and you should choose "No".

Allow access for 1-10 minutes.



YES, NO, HELP



Any idea, how to allow access to this COM plug-in. There is no option for
allow access for always, only a max of 10 minutes.. This dialogbox again
comes up after 10 minutes, thus halting my application.

Regards,

Neo


Ads
  #2  
Old January 16th 06, 04:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default dialog comes up when trying to access mailItem

MailItem is not restricted however certain properties of MailItems are
restricted. For example reading .Body or any email address property. To
avoid that you need to use a 3rd party library such as Redemption or use
Extended MAPI (C++ or Delphi only).

Unfortunately even with only running on Outlook 2003 and following the rules
for a trusted COM addin you're out of luck since .NET addins are never
trusted.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Neo" wrote in message
...
I am writing an Outlook COM add-in in C# .NET. When I try to access mail
item, An outlook dialog box comes up asking:



A program is trying to access e-mail addresses you have stored in Outlook.
Do you want to allow this?

If this is unexpected, it may be a virus and you should choose "No".

Allow access for 1-10 minutes.



YES, NO, HELP



Any idea, how to allow access to this COM plug-in. There is no option for
allow access for always, only a max of 10 minutes.. This dialogbox again
comes up after 10 minutes, thus halting my application.

Regards,

Neo



  #3  
Old January 16th 06, 05:39 PM posted to microsoft.public.outlook.program_addins
Neo
external usenet poster
 
Posts: 3
Default dialog comes up when trying to access mailItem

How to create a trusted COM addin?
Any pointers?

-Neo

"Ken Slovak - [MVP - Outlook]" wrote in message
...
MailItem is not restricted however certain properties of MailItems are
restricted. For example reading .Body or any email address property. To
avoid that you need to use a 3rd party library such as Redemption or use
Extended MAPI (C++ or Delphi only).

Unfortunately even with only running on Outlook 2003 and following the
rules for a trusted COM addin you're out of luck since .NET addins are
never trusted.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Neo" wrote in message
...
I am writing an Outlook COM add-in in C# .NET. When I try to access mail
item, An outlook dialog box comes up asking:



A program is trying to access e-mail addresses you have stored in
Outlook. Do you want to allow this?

If this is unexpected, it may be a virus and you should choose "No".

Allow access for 1-10 minutes.



YES, NO, HELP



Any idea, how to allow access to this COM plug-in. There is no option for
allow access for always, only a max of 10 minutes.. This dialogbox again
comes up after 10 minutes, thus halting my application.

Regards,

Neo





  #4  
Old January 16th 06, 09:56 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default dialog comes up when trying to access mailItem

Derive all your Outlook objects from the Application object passed to you in
On_Connection.

This only works for Outlook 2003. No trusted addins for Outlook 2000 or 2002
unless they are trusted using the Exchange security form in the special
Exchange public folder.

Outlook 2003 addins created using .NET languages and using the Interop are
never trusted.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Neo" wrote in message
...
How to create a trusted COM addin?
Any pointers?

-Neo


 




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
Font Size Problem in Options Dialog Box Wayne Boatwright Outlook - Installation 0 March 7th 06 02:04 AM
Location info dialog box kathrynatgwens Outlook - General Queries 1 February 27th 06 05:54 PM
How can I create a MailItem that displays like a received MailItem ? Clive Outlook - Using Forms 0 February 27th 06 04:14 PM
Resource Scheduled dialog box FBGWeezer Outlook - Calandaring 1 February 24th 06 04:23 PM
Word print dialog box Martin Outlook - Using Forms 1 January 31st 06 01:05 PM


All times are GMT +1. The time now is 01:47 AM.


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