views:

242

answers:

1

Hi,

i have created an application that access Exchange Server using Redemption. it works fine in my machine ( i have outlook 2007 at my machine) but when i run same application in other system containing outlook express it gives me the following error:

creating an instance of the COM component with CLSID{ } from the IClassFatory failed due to the following error:80004005.

NOTE: This error comes while creating the new RDOSession object.

Please tell me the reason and what should i do to achive this.

Many Thanks for the solution in advance.

here is the code:

Redemption.RDOSession rdoSession = new Redemption.RDOSession(); rdoSession.Logon(OL_USER, OL_SERVER,false,false,null,null); MessageBox.Show("STORE KIND: " + rdoSession.Stores.DefaultStore.StoreKind.ToString()); MessageBox.Show("Store Name: : " + rdoSession.Stores.DefaultStore.Name);

            foreach (Redemption.RDOReminder reminder in rdoSession.Stores.DefaultStore.Reminders)
            {
                MessageBox.Show("Reminders: : "+ reminder.Caption);
            }

===========================UPDATED================================ yes to access Excnahge Server I have to call method LogonExchangeMailbox() instead of Log On but the problem is on creating the new instance of RDOSession it gives the exception and this exception comes in m/c where outlook express is installed but working fine where outlook 2007 is installed.

EXCEPTION : "creating an instance of the COM component with CLSID{ } from the IClassFatory failed due to the following error:80004005."

A: 

The Logon method uses an outlook profile which you dont have on that machine .. you should use the LogonExchangeMailbox as that create a temp profile for you ..

Update

Have you check that the registartion worked on your express machine ? might be a good idea to re-register redemption.dll

76mel
yes i have register redemption.dll in express m/c but still find the error.
simon
Try using RDo inside a VBA envioment such as word vbs etc. as I sound like that the registration is screwed or the interop is not happy .. how are you distributing your app ? is a console app ?
76mel