View Single Post
  #1  
Old July 17th 08, 02:26 PM posted to microsoft.public.outlook.program_addins
Johan Machielse
external usenet poster
 
Posts: 1
Default C# Error when calling MAPI.Session.Logon()

Dear reader,

See next piece of code (written in C#):

MAPI.Session mapiSession = new MAPI.Session();
mapiSession.Logon(null, null, false, false, 0, false, "");

The call mapiSession.Logon() throws the following exception:
[Collaboration Data Objects - [E_INVALIDARG(80070057)]

What can I do to solve this problem; which arguments do I have to pass?

Thank you in advance,

Johan Machielse
Avanade


Ads