Security Manager Working once but not twice

Add-in Express™ Support Service
That's what is more important than anything else

Security Manager Working once but not twice
Trying to avoid the security prompt does not work after restarted Outlook. 
Fabian H?ger




Posts: 4
Joined: 2011-05-25
Trying to avoid the security prompt does not work after restarted Outlook 2010.
Working with the security manager I can avoid the security promt except one case.

I am opening a new mail with Outlook 2010. No security prompt.
I am closing outlook completely, open it again an try to open a new mail with the same program again.
The security prompt showed up again.

With Outlook 2003 the code is working. I am creating a new SecurityManager object everytime, but is does not help.

Little example:
public static bool EnsureOOMWaringsDisabled()
{
using (SecurityManager _sm = new SecurityManager())
{
Logger.LogToFile("disable oom");

if (!_registered)
RegisterSecmanDll(false);
_registered = true;
try
{
if (OutlookConnection.OutlookApplicationClass != null)
_sm.ConnectTo(OutlookConnection.OutlookApplicationClass);
else
Logger.LogToFile("OL app = null");
_sm.DisableOOMWarnings = true;
}
catch (System.Exception ee)
{

Logger.LogToFile("sec man ", ee);
return false;
}
}
return true;
}
Posted 25 May, 2011 05:48:16 Top
Renat Tlebaldziyeu


Guest


Hello Fabian,
What version (with build number, please) of Outlook Security Manager do you use?
Please try to use the Disconnect method of Outlook Security Manager:
_sm.DisableOOMWarnings = true;
_sm.Disconnect(OutlookConnection.OutlookApplicationClass);

Did it help?
Posted 25 May, 2011 05:56:01 Top
Fabian H?ger




Posts: 4
Joined: 2011-05-25
Hi Renat,

sory did not help.

Version: 6.1.3016.2005
BuildVersion:2005?
Runtime Version: v2.0.50727

Kind regards
Fabian
Posted 25 May, 2011 09:11:41 Top
Renat Tlebaldziyeu


Guest


Could you please send me a sample project, which reproduces the issue (please see readme.txt for the support e-mail address and make sure your e-mail contains a link to this topic)?
Posted 25 May, 2011 13:17:42 Top
Renat Tlebaldziyeu


Guest


Thank you for providing me with the sample project, Fabian.
I'm sorry, I wasn't able to reproduce the issue.
Could you please organize a remote session? I will look into the issue online.
Posted 27 May, 2011 12:00:53 Top