I have a VB6 application running on a number of computers at a school.
These all have Microsoft Office (and also Outlook) installed. They are
using an Exchange server.
This app uses the msmapi32.ocx to send mail.
On MOST of the computers, this works.
But on a few of these computers, where it was working for a long time, it
now gives an invalid session ID.
So I turned on the LogonUI and learned something very interesting.
When the app wants to send mail, I set the Mapi username to the NT logged-in
user name. Then, when mapi tries to log on, it pops up a message that the
profile selected is invalid, please select a profile.
THEN, another message pops up that says there are NO profiles defined.
But when I look in the control panel, there IS one profile defined. This is
the one the user uses for their mail.
On some of these computers, I've created a second profile, and the
application sees that profile. Opening the profiles in the control panel, I
don't notice anything different between them (other than the name).
How could it be that MAPI does not see some profiles, but does see others?
Is there some setting or something that I'm missing?
Thanks for any ideas!
---Selden