• Subject: C# Error when calling MAPI.Session.Logon()
  • Author: Johan Machielse
  • Date: 17 Jul
  • References:
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
17 JulC# Error when calling MAPI.Session.Logon().Johan Machielse
17 Jul\ Re: C# Error when calling MAPI.Session.Logon().Ken Slovak - [MVP - O...
17 Jul   |- Re: C# Error when calling MAPI.Session.Logon().Johan Machielse
17 Jul   |  |- Re: C# Error when calling MAPI.Session.Logon().Dmitry Streblechenko
18 Jul   |  \ Re: C# Error when calling MAPI.Session.Logon().Ken Slovak - [MVP - O...
17 Jul   |- Re: C# Error when calling MAPI.Session.Logon().Dmitry Streblechenko
18 Jul   \ Re: C# Error when calling MAPI.Session.Logon().Johan Machielse
18 Jul      \ Re: C# Error when calling MAPI.Session.Logon().Dmitry Streblechenko
All times are in (US) Eastern Daylight Time (GMT -4:00)