osmDLLNotLoaded how can i fix it?

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

osmDLLNotLoaded how can i fix it?
 
Ralph Gielkens




Posts: 6
Joined: 2011-06-01
Hello,

We have Outlook Security Manager The ActiveX Edition and the problem is that the Outlook security message is showing. We have Outlook 2010 on Windows Server 2008. We are using the 32 bit version from Outlook 2010. This is the code:

if VarIsClear(SecurityManager) then
begin
//Trying to create object OutlookSecurityManager
try
SecurityManager := CreateOLEObject('AddInExpress.OutlookSecurityManager');
if not VarIsClear(OutlookObject) then
SecurityManager.ConnectTo(OutlookObject);
except
on e : exception do
begin
ErrorMsg('Could not create OutlookSecurityManager ErrorMSG: ' + e.Message);
Exit;
end;
end;
end;

If not VarIsClear(SecurityManager) Then
begin
iRes := SecurityManager.Check(osmObjectModel);
if iRes = osmOK then
SecurityManager.DisableOOMWarnings := True;
LogErrorMessage(osmObjectModel, iRes);

iRes := SecurityManager.Check(osmCDO);
if iRes = osmOK then
SecurityManager.DisableCDOWarnings := True;
LogErrorMessage(osmCDO, iRes);

iRes := SecurityManager.Check(osmSimpleMAPI);
if iRes = osmOK then
SecurityManager.DisableSMAPIWarnings := True;
LogErrorMessage(osmSimpleMAPI, iRes);
end;

All the checks return osmDLLNotLoaded. In the documentation the explanation is: "osmDLLNotLoaded Outlook Security cannot be disabled because Outlook Security Manager is not registered. What dos this mean and how can i fix it?

Greetings,

Ralph.
Posted 01 Jun, 2011 04:10:08 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Ralph,

Please make sure that you have the Outlook Security Manager component properly registered on the end user PC. You can read more about this in the Outlook Security Manager 2010 deployment: Summary article on our technical blog.
.NET, Extended MAPI, Windows Phone & RT
Posted 01 Jun, 2011 04:37:25 Top
Ralph Gielkens




Posts: 6
Joined: 2011-06-01
Hello Eugene,

I've installed your MSI on my development PC( Windows XP ) and i get the same result. I checked the registry and the dll's are registered. I'm using Outlook 32 bit.

iRes := SecurityManager.Check(osmObjectModel);
The result of this function = 1.

Can i enable extra logging. To see whats wrong?

Kind regards,

Ralph.
Posted 08 Jun, 2011 10:11:43 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hi Ralph,

What Security Manager version are you using?

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 08 Jun, 2011 10:29:52 Top
Ralph Gielkens




Posts: 6
Joined: 2011-06-01
Hello Andrei,

We purchased the latest version of the Outlook Security Manager the ActiveX edition. This version supports Outlook 2010.
Version v601:
osmax.ocx 6.1.0.1029
secman.dll 3.0.3.0
setup.exe 8.0.50727.42

Kind regards,
Ralph
Posted 09 Jun, 2011 02:27:26 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hi Ralph,

Please try to re-register secman.dll from a command prompt run via "Run as administrator". Does this help?
Posted 09 Jun, 2011 03:03:16 Top
Ralph Gielkens




Posts: 6
Joined: 2011-06-01
Hello Andrei,

I have XP and i re-register the secman.dll but it doesn't work.

Kind regards,
Ralph
Posted 09 Jun, 2011 03:06:49 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hi Ralph,

Please send me the following:
- a screenshot of the About window of the Outlook on which the issue is reproducible
- a screenshot of the About window of your Delphi
- a screenshot of the General tab of the System Properties window, see Control Panel | System

You can find our support e-mail address in readme.txt.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 09 Jun, 2011 03:54:05 Top
Ralph Gielkens




Posts: 6
Joined: 2011-06-01
Hello Andrei,

I've send the e-mail.

Kind regards,

Ralph.
Posted 09 Jun, 2011 05:14:28 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hi Ralph,

I've got your e-mail and I replied to it asking for a remote access to your PC (if possible).

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 09 Jun, 2011 05:40:38 Top