Note that there are some explanatory texts on larger screens.

plurals
  1. POGranting access to outlook application
    text
    copied!<p>I have developed a .NET application which is accessing outlook. For my computer it is working fine but when I am publsihing it and run it into other PC outlook is showing a pop up that "an external application want to access outlook, grant access for 1/2/5/10 min".</p> <p>But my application wants access for more than 10 minutes. What will be the solution for this?</p> <p>My guess:</p> <ol> <li>How can I make this application as trusted in outlook?</li> <li>My computer outlook never asked me about access why other computer want access time? Is this because I developed the application on my system?</li> </ol> <p><strong>EDIT</strong></p> <p>The same thing I found here <a href="http://www.add-in-express.com/outlook-security/" rel="nofollow">http://www.add-in-express.com/outlook-security/</a></p> <p>but When I am copying the code:</p> <pre><code> AddinExpress.Outlook.SecurityManager SecurityManager = new AddinExpress.Outlook.SecurityManager(); SecurityManager.DisableOOMWarnings = true; try { // ... any action with protected objects ... } finally { // In any case please remember to turn on // Outlook Security after your code, // since now it is very easy to switch it off! :-) SecurityManager.DisableOOMWarnings = false; } </code></pre> <p>This stament is showing as error: </p> <blockquote> <p>AddinExpress.Outlook.SecurityManager </p> </blockquote> <p>Which Namespace I have to use, I am using .NET 2.0.</p> <p>Following are the namespaces I have already included in my .cs file</p> <pre><code> using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Office.Interop; using System.Reflection; using Microsoft.Office; using System.Runtime.InteropServices; using OutLook = Microsoft.Office.Interop.Outlook; using System.Reflection; using System.Text; using System.Configuration; using System.Security; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload