Error HRESULT E_FAIL has been returned from a call to a COM component.

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

Error HRESULT E_FAIL has been returned from a call to a COM component.
Disabling OOM warnings fail on client machine 
Udayan Prem




Posts: 3
Joined: 2006-11-15
We are using Outlook Security manager .NET 2005 to disable Outlook security manager in a Addin written in .NET 2005 using VSTO 2005. It works fine on development machine and some client machine on which it is deployed. Some machines it is giving following error when first time trying to disable the warnings :
Error HRESULT E_FAIL has been returned from a call to a COM component.

The machine has Microsoft Windows XP with service pack 2. Secman.dll is registered on the machine.

any help is highly appreciated...
thanks
Posted 15 Nov, 2006 12:54:30 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Udayan.

Could you please show me the code that you use to disable the security warnings?
Posted 16 Nov, 2006 06:55:40 Top
Udayan Prem




Posts: 3
Joined: 2006-11-15
At the start of outlook application in ThisApplication_Startup:

oclsSecurityManager = New AddinExpress.Outlook.SecurityManager()

when ever the message receipients etc are accessed :

oclsSecurityManager.DisableOOMWarnings = true
oclsSecurityManager.DisableCDOWarnings = true

Once the access is over in finally block

oclsSecurityManager.DisableOOMWarnings = false
oclsSecurityManager.DisableCDOWarnings = false

Lastly in ThisApplication_Shutdown

oclsSecurityManager = nothing.

Just to give you an idea of our application : We have a search screen implemented which gets the data from our custom application. On this screen there are some buttons which allow user to send an email, create appointment etc. Here we do some custom processing where we disable and enable outlook pop ups using Security manager.

Please let me know if you need any other information.
Thanks
Posted 16 Nov, 2006 10:00:25 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Udayan.

Do you use both the CDO and OOM Object models in the add-in code?
Can you confirm that the CDO is installed on all machines?
Please comment out the 'oclsSecurityManager.DisableCDOWarnings' property and test the add-in again.
Posted 17 Nov, 2006 09:18:01 Top
Udayan Prem




Posts: 3
Joined: 2006-11-15
Thanks for your response. It was CDO problem. On some machines CDO was not installed. After installing CDO, it worked.
thanks once again.
Prem
Posted 12 Dec, 2006 10:28:33 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Udayan.

Thanks for the update. Please let me know if you face any other difficulties.
Posted 12 Dec, 2006 15:02:38 Top