Redemption SafeCurrentUser returns nothing or unknown?

  • Thread starter Thread starter Unknown
  • Start date Start date
U

Unknown

Please help on this problem. Thanks.

Dim oRdpCurrentUser as Object

Set oRdpCurrentUser = CreateObject
("Redemption.SafeCurrentUser")
Debug.Print oRdpCurrentUser.Name

oRdpCurrentUser.cleanUp
Set oRdpCurrentUser = Nothing
 
How many profiles do you have on your system? Is your code COM addin or an
external xe? If you have OutlookSpy installed, can you click IMAPISession,
then QueryIdentity?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Unknown said:
I'm using Exchange server 2003 and Outlook 2000 and Win
Xp. Thanks
 
I've 4-5 different testing profiles on my PC. It's an
standalone EXE app. I looked IMAPISession/QueryIdentity
and what should I be looking for? Thanks!
 
If you get "Unknown", I suspect that you get results from an Extended MAPI
session that does not have Exchange. Outlook 2002 prior to SP3 returned
"Unknown" for both name and address when using the entry id returned by
IMAPISession::QueryIdentity.
You could fix this by setting MAPIUtils.MAPIOBJECT to Namespace.MAPIOBJECT
to force Redemption to use exactly the same MAPI session as Outlook, but
Namespace.MAPIOBJECT is only available in Outlook 2002 and up.
Can you try to remove all profiles but the one with an Exchange server to
see if that is really the problem?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thanks for the info. I'll give it a try. All the
profiles I created are on the same Exchange server. I'm
using different accounts for testing. I checked all the
profiles and all of them are on Exchange.
 
Back
Top