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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Untrusted code to TRUSTED code ...



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 16th 09, 10:35 AM posted to microsoft.public.outlook.program_vba
KSor
external usenet poster
 
Posts: 2
Default Untrusted code to TRUSTED code ...

How do I make this C# code TRUSTED:

1 Microsoft.Office.Interop.Outlook.Application oApp =
2 new Microsoft.Office.Interop.Outlook.Application();
3 oNS = oApp.GetNamespace("MAPI");

?



  #2  
Old February 16th 09, 03:52 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Untrusted code to TRUSTED code ...

Where is this code running? Is it in a COM addin or in standalone code? What
version of Outlook?

For Outlook 2007 you are trusted, even in standalone code, if you have an up
to date anti-virus and your settings are set correctly. For Outlook 2003 and
earlier you never are trusted in standalone code, you can be trusted for
addin code in Outlook 2003 if you use the Application object passed to you
to derive all of your other Outlook objects.

See http://outlookcode.com/article.aspx?id=52 for additional information on
trusted Outlook code.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"KSor" wrote in message
...
How do I make this C# code TRUSTED:

1 Microsoft.Office.Interop.Outlook.Application oApp =
2 new Microsoft.Office.Interop.Outlook.Application();
3 oNS = oApp.GetNamespace("MAPI");

?




 




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
Call DLL code from VBScript code-behind Pavel Rosoi Outlook - Using Forms 3 June 23rd 08 07:19 PM
mailto not trusted even when click from trusted site with IE7 & Vi Eric Outlook - General Queries 7 May 5th 07 07:27 PM
key code help Clive Outlook - Installation 2 October 5th 06 11:14 AM
add 1+XXX area code to phone nr in my area code OH Outlook - Using Contacts 3 August 3rd 06 04:45 PM
code : Code : 800cccd2 scotty971fr Outlook Express 1 January 20th 06 12:59 AM


All times are GMT +1. The time now is 08:33 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.