Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Can't get Mapi signon to login

    I have been using a VB6 program and Mapi along with Eudora on a Win XP system for years to read emails and send attachments requested in the emails. I recently moved the program to a Win 7 system with Thunderbird. When the program (shown below) executes signon it throws error 32003 Login has failed. After reading that Thunderbird does not always work with Mapi, I tried Outlook 2010 and when that yielded the same result Outlook 2013 with again the same result. The only requirements I have found after an extensive search of the web is that the email client must be set as the default program and the username and password must be correct. For each client I set it as the email default and I configured the client for the email account and could then download from the email account using the username and password contained in the vb6 program. I also tried turning off the firewall, both modem and Windows, but no joy. I am at a loss as to how to proceed.

    Private Function LogOn() As Boolean
    Dim result As Integer
    On Error GoTo errLogInFail

    frmMail.MapiSess.UserName = "owner@domain.com"
    frmMail.MapiSess.Password = "QSfby93n"

    With frmMail.MapiSess
    .NewSession = True
    .DownLoadMail = True
    .LogonUI = False
    .SignOn

    LogOn = True

    frmMail.MapiMess.SessionID = .SessionID

    End With
    frmMail.MapiMess.FetchUnreadOnly = "True"
    frmMail.MapiMess.Fetch
    If frmMail.MapiMess.MsgCount > 0 Then Process

    Exit Function

    errLogInFail:
    Debug.Print Err.Number, Err.Description
    If Err.Number = 32003 Then
    MsgBox "Canceled Login"
    LogOn = False
    End If
    End
    Exit Function
    End Function

  2. #2
    jwoods
    Guest
    Check if MSMAPI32.OCX is in C:\Windows\System32.

  3. #3
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts
    msmapi32.Ocx is there dated 3/24/09. Not sure why the O is capitalized but I don't see where that would make any difference.

    Fritzsche

  4. #4
    jwoods
    Guest
    Last edited by jwoods; 2015-06-02 at 18:48.

  5. #5
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Unfortunately it is registered. That would have been an easy fix.

  6. #6
    jwoods
    Guest
    My version is too...in C:\Windows\SysWOW64 on Windows 7.

    I would check all the references selected for the project and confirm they are in the right place, and registered.

    You could also just try running the executable in XP Compatibilty Mode, with elevated privileges.
    Last edited by jwoods; 2015-06-04 at 01:29.

  7. #7
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts
    All but two references are being successfully used in other programs. The two are:

    c:\Program Files\Common Files \designer\MSDERUN.DLL is shown in registery.
    c:\Program Files\Common Files\System\ado\msado25.tlb not found in registry. It is owned by TrustedInstaller a program recomended by my bank

    I tried running the executable in XP compatibility mode with elevated privileges but got the same response as above.

  8. #8
    Super Moderator
    Join Date
    Jun 2011
    Location
    New England
    Posts
    4,757
    Thanks
    171
    Thanked 653 Times in 576 Posts
    Quote Originally Posted by Fritzsche View Post
    It is owned by TrustedInstaller a program recomended by my bank
    The "Trusted Installer" account is used to secure core operating system files and registry keys.
    Permission for full access to modify WRP-protected resources is restricted to the processes using the Windows Modules Installer service
    (TrustedInstaller.exe).
    Windows Resource Protection

    You're thinking of Trusteer Rapport

  9. #9
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts
    That is the program. I don't see how it would cause my problem.

  10. #10
    jwoods
    Guest
    Have you recompiled the program on the Win 7 system?

  11. #11
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I have been running it in debug mode after incurring the signon error.

  12. #12
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I started the computer in safe mode with internet connection but the problem persisted.

  13. #13
    jwoods
    Guest
    I'm thinking it's a permissions problem between your app and Outlook, either with the credentials you're providing Outlook, or app privileges.

    Is the user you're sending via MAPI in a group that has permissions to access Outlook?

    Does the local policy allow remote access of Outlook?

    Does the VB6 app have permissions to access Outlook?

  14. #14
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Something must be blocking Mapi, but I am at a loss to know what it is. I am on my personal computer. I wrote the program on the XP machine but updated it several years ago on the win 7 machine before moving it back to the XP machine to run. (I had moved VB6 to the win 7 machine and no longer had it on the xp machine. It works perfectly on the XP machine with Eudora. It does not work on the win 7 machine with either Thunderbird or Outlook even with administrator privileges. I must be missing something very basic, but don't know what I am missing.

  15. #15
    New Lounger
    Join Date
    Jan 2010
    Location
    Puyallup, WA
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I may have made a little more progress. My program provides the username and password for the mail account I am trying to access. Thus I set the LogonUI to false. I decided to set it to true for testing and received the message that the profile name is not valid. Enter a valid profile name. That is puzzling as I have created an Outlook profile that successfully sends messages to the account. I created a second profile and got the same results.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •