OpenSharedItem - Exception

A

Andre Maas

Hello,

i would like to load a Mail from filesystem. In OL2007 is a new function
called: 'OpenSharedItem'.

I've called the function like:

MailItem mailItemLoaded =
Application.Session.OpenSharedItem(@"D:\456.msg") as MailItem;

If the mail is an OL2007 Mail the function works fine. If the mail i
would like to load is from OL2000 oder OL2003 the function throw the
following exception: 'System.Runtime.InteropServices.COMException'.

Have anyone else have faced any similar problem? What I am doing wrong
here? Any pointers on this will be of great help.


Regards,

André
 
A

Andre Maas

Andre said:
Hello,

i would like to load a Mail from filesystem. In OL2007 is a new function
called: 'OpenSharedItem'.

I've called the function like:

MailItem mailItemLoaded =
Application.Session.OpenSharedItem(@"D:\456.msg") as MailItem;

If the mail is an OL2007 or OL 2003 Mail the function works fine. If the mail i
would like to load is from OL2000 the function throw the
following exception: 'System.Runtime.InteropServices.COMException'.

Have anyone else have faced any similar problem? What I am doing wrong
here? Any pointers on this will be of great help.


Regards,

André
 
A

Andre Maas

Hello,

i would like to load a Mail from filesystem. In OL2007 is a new function
called: 'OpenSharedItem'.

I've called the function like:

MailItem mailItemLoaded =
Application.Session.OpenSharedItem(@"D:\456.msg") as MailItem;

If the mail is an OL2007 or OL2003 Mail the function works fine. If the
mail i
would like to load is from OL2000 the function throw the
following exception: 'System.Runtime.InteropServices.COMException'.

Have anyone else have faced any similar problem? What I am doing wrong
here? Any pointers on this will be of great help.


Regards,

André
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top