MAPI SignOn failure in Server 2003 for Small Business
Posted on 2007-11-26
I have a well-used (prox 300 clients) VB6 app that receives and sends emails for many purposes. For several years, it's successfully used the MAPI system for this purpose. Suddenly, I have a client using Windows Server for Small Business 2003 (SP2), and on his there's a problem I've been unable to resolve.
Specifically, the MAPISession.SignOn method immediately produces an error 32002 (unspecified failure has occurred). He's using Outlook Express as the email client (yes, it's set as the Windows default email program, and yes, it works perfectly when accessed directly). MSMapi32.OCX is correctly installed and registered in his Windows/System32 folder. It's Ver 220.127.116.11, dated June 24, 1998, and yes, I've tried unregistering and re-registering it. I've also tried all possible parameters on settings for the few properties that exist for the MAPISession control, and varying sequences of implementation. All sorts of variations work just fine in every other machine I test, but not in this one.
If you want a code sample, it can be as simple as:
or as complex as:
.NewSession = True
.UserName = "xxxxxx"
.Password = "xxxxxx"
.DownLoadMail = False
.LogonUI = False
Or, the code could be any of many other variations. Regardless, as the SignOn method is invoked, the error triggers immediately. A solution to this will be greatly appreciated.