The information in this article applies to:
SYMPTOMS
When calling the SignOn method of the MAPISession control, the following
error may occur:
CAUSEThe LogonUI property of the MAPISession control is set to True and the UserName property of the control contains an invalid profile name. RESOLUTION
Either set the UserName property of the MAPISession control equal to a
profile name that exists on the machine before the SignOn method of the
control is called, or leave the UserName property empty.
STATUSThis behavior is by design. MORE INFORMATIONThe MAPI 1.0 specification requires a profile to log on to a messaging session. The MAPISession control was written before the MAPI 1.0 specification was established. In order to use this control to establish a MAPI 1.0 session and prevent the Choose Profile dialog from showing, the UserName property must be used to pass the name of the profile needed to sign on. Additional query words:
msmapi32.ocx vbmapi kbVBp400 kbVBp500 kbVBp600 kbdse kbDSupport
Keywords : kbGrpVBDB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |