View Single Post
  #4  
Old April 18th 08, 05:41 AM posted to microsoft.public.outlook.program_vba
AVIS
external usenet poster
 
Posts: 10
Default MAPI Session Logon error

Yupe, I have got CDO 1.21 installed. But still it is not working.

"Sue Mosher [MVP-Outlook]" wrote:

Did you actually install CDO 1.21 on the Outlook 2007 system? It is a separate download.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"AVIS" wrote in message news
Hi All,

I have a Visual Basic application which has the below code

Set Session = New MAPI.Session
ProfileInfo = ExchangeServer & vbLf & UserId
Call Session.Logon(, , False, , , , sProfileInfo)
Set Contacts = Session.GetDefaultFolder(CdoDefaultFolderContacts)

It is working fine in my PC with WINDOWS XP Professional and OUTLOOK 2003.

But the "Set oContacts = ..", given in the above coding snapshot returns an
error message, in one of the user's PC. The error is happening in a system
with WINDOWS 2003 and OUTLOOK 2007. When I replace the statement "Call
oSession.Logon(, , False, , , , sProfileInfo)" with the statement as
Call oSession.Logon(, , True, False), it is working fine

Can anyone tell me, why this is happening, is it some envvironment issue?

I cant change the code in the application, since this is the only user, who
is having the problem and the others (I hope all are using WINDOWS XP, with
OUTLOOK 2003) are not having the problem.


Ads
 

Mortgage - Search for jobs - Web Games - Compare - Debt