Where and how do you see "1000's of Auto Created MAPI sessions"?
What version of MAPI are you using? The standalone (Exchange) or the one
that comes with Outlook?
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Bob Smith" wrote in message
...
It's a VBscript calling CDO 1.2. I got this working now by passing in the
users Legacy Exchange DN. I do however run into a slight problem after
some
time where I receieve an error there is not enouogh memory. I checked and
the
script is only using about 20MB and this server has a lot of memory. What
I
do see though is 1000's of Auto Created MAPI sessions are not being
cleaned
up. I have set objSession.Logoff and objSession = Nothing, but it doesn't
seem to clean up the mapi sessions in the registry.
"Ken Slovak - [MVP - Outlook]" wrote:
Where is this code running? Is it running when Outlook is also running?
Is "testuser" the name of the mailbox or the Exchange alias or what? Same
for "testuser2".
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Bob Smith" wrote in message
...
Thanks for the information. I changed my logon information too;
strProfileInfo = "Your Servername" & vbLf & "Your Mailbox"
objSession.Logon "", "", False, True, 0, False, strProfileInfo
I still have the same problem. I am hitting entire exchange servers
passing
in the Alias as the "Your Mailbox" field. In every case where
multiple
results are returned as in my testuser example I get the error.
-2147221231 The information store could not be opened. [MAPI 1.0 -
[MAPI_E_LOGON_FAILED(80040111)]]
It's not permissions I know for sure as I can connect to this using my
logged on account with outlook. The only difference is that multiple
selections popup when creating the profile.