A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

MAPI Session Logon error



 
 
Thread Tools Search this Thread Display Modes
  #11  
Old April 22nd 08, 08:41 AM posted to microsoft.public.outlook.program_vba
AVIS
external usenet poster
 
Posts: 17
Default MAPI Session Logon error

Hi,

I tried implementing ur suggestions, but still it is not working. I also
found that the profile name that I have selected is not prefixed to any of
the other user ids.

"SvenC" wrote:

Hi Sue,

Actually, it should be possible to do that by prefixing the userID
with "=" to force an exact match, e.g. "=" & UserId


I tested that a while ago and had problems with it. It could be
different behaviour for Exchange Server MAPI and Outlook MAPI.
IIRC it did not work for Exchange MAPI and ExchangeMAPICDO

--
SvenC

Ads
  #12  
Old April 22nd 08, 01:58 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default MAPI Session Logon error

Profile names and user IDs are two completely different things.

--
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 ...
Hi,

I tried implementing ur suggestions, but still it is not working. I also
found that the profile name that I have selected is not prefixed to any of
the other user ids.

"SvenC" wrote:

Hi Sue,

Actually, it should be possible to do that by prefixing the userID
with "=" to force an exact match, e.g. "=" & UserId


I tested that a while ago and had problems with it. It could be
different behaviour for Exchange Server MAPI and Outlook MAPI.
IIRC it did not work for Exchange MAPI and ExchangeMAPICDO

--
SvenC

  #13  
Old April 24th 08, 10:46 AM posted to microsoft.public.outlook.program_vba
AVIS
external usenet poster
 
Posts: 17
Default MAPI Session Logon error

Sorry, what I meant was user IDs and not profile names. Still the problem is
not getting resolved for me and i have tried all the options or help
provided, but was not able to proceed on this.

"Sue Mosher [MVP-Outlook]" wrote:

Profile names and user IDs are two completely different things.

--
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 ...
Hi,

I tried implementing ur suggestions, but still it is not working. I also
found that the profile name that I have selected is not prefixed to any of
the other user ids.

"SvenC" wrote:

Hi Sue,

Actually, it should be possible to do that by prefixing the userID
with "=" to force an exact match, e.g. "=" & UserId

I tested that a while ago and had problems with it. It could be
different behaviour for Exchange Server MAPI and Outlook MAPI.
IIRC it did not work for Exchange MAPI and ExchangeMAPICDO

--
SvenC


  #14  
Old April 24th 08, 01:23 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default MAPI Session Logon error

If you type that UserID into the To box of a message, does it resolve to an Exchange user?

Have you checked permissions on the mailbox?

--
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 ...
Sorry, what I meant was user IDs and not profile names. Still the problem is
not getting resolved for me and i have tried all the options or help
provided, but was not able to proceed on this.

"Sue Mosher [MVP-Outlook]" wrote:

Profile names and user IDs are two completely different things.

"AVIS" wrote in message ...
Hi,

I tried implementing ur suggestions, but still it is not working. I also
found that the profile name that I have selected is not prefixed to any of
the other user ids.

"SvenC" wrote:

Hi Sue,

Actually, it should be possible to do that by prefixing the userID
with "=" to force an exact match, e.g. "=" & UserId

I tested that a while ago and had problems with it. It could be
different behaviour for Exchange Server MAPI and Outlook MAPI.
IIRC it did not work for Exchange MAPI and ExchangeMAPICDO

--
SvenC


  #15  
Old April 25th 08, 07:16 AM posted to microsoft.public.outlook.program_vba
AVIS
external usenet poster
 
Posts: 17
Default MAPI Session Logon error

As I informed, the appointments are getting created, if the below statement
is used for the logon

Call oSession.Logon(, , True, False)

But the issue is, the current profile has to be selected from the list,
which cannot be accomodated in the application that has been developed.

As far as the resolution of the user ID, it happens correctly and gets
resolved as expected.

Proper permissions have also been given to user id.

"Sue Mosher [MVP-Outlook]" wrote:

If you type that UserID into the To box of a message, does it resolve to an Exchange user?

Have you checked permissions on the mailbox?

--
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 ...
Sorry, what I meant was user IDs and not profile names. Still the problem is
not getting resolved for me and i have tried all the options or help
provided, but was not able to proceed on this.

"Sue Mosher [MVP-Outlook]" wrote:

Profile names and user IDs are two completely different things.

"AVIS" wrote in message ...
Hi,

I tried implementing ur suggestions, but still it is not working. I also
found that the profile name that I have selected is not prefixed to any of
the other user ids.

"SvenC" wrote:

Hi Sue,

Actually, it should be possible to do that by prefixing the userID
with "=" to force an exact match, e.g. "=" & UserId

I tested that a while ago and had problems with it. It could be
different behaviour for Exchange Server MAPI and Outlook MAPI.
IIRC it did not work for Exchange MAPI and ExchangeMAPICDO

--
SvenC



  #16  
Old April 29th 08, 08:39 AM posted to microsoft.public.outlook.program_vba
AVIS
external usenet poster
 
Posts: 17
Default MAPI Session Logon error

Any Updates?

"AVIS" wrote:

I dont think, there is anything related to the permission of the user.
Because, if i set the code, in such a way that the profile name is
selectable, then the code works fine, or else it doesnt. This happens only
in this system. All other system, the profile name is not selectable, but
the code works fine....

"Ken Slovak - [MVP - Outlook]" wrote:

Does that user have the same permissions as other users? Are you sure that
the user is using the correct alias and that they have permissions for that
alias? Did you try the suggestion I made about changing the logon arguments?

With a CDO logon it's a matter of permissions and getting your parameters
correct.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"AVIS" wrote in message
news
For the first question, No, the user specifies the admin details of the
exchange server

The server details are from the database and the same details are used by
other users, where the program is working fine.



  #17  
Old April 29th 08, 08:39 AM posted to microsoft.public.outlook.program_vba
AVIS
external usenet poster
 
Posts: 17
Default MAPI Session Logon error

Any Updates?

"AVIS" wrote:

As I informed, the appointments are getting created, if the below statement
is used for the logon

Call oSession.Logon(, , True, False)

But the issue is, the current profile has to be selected from the list,
which cannot be accomodated in the application that has been developed.

As far as the resolution of the user ID, it happens correctly and gets
resolved as expected.

Proper permissions have also been given to user id.

"Sue Mosher [MVP-Outlook]" wrote:

If you type that UserID into the To box of a message, does it resolve to an Exchange user?

Have you checked permissions on the mailbox?

--
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 ...
Sorry, what I meant was user IDs and not profile names. Still the problem is
not getting resolved for me and i have tried all the options or help
provided, but was not able to proceed on this.

"Sue Mosher [MVP-Outlook]" wrote:

Profile names and user IDs are two completely different things.

"AVIS" wrote in message ...
Hi,

I tried implementing ur suggestions, but still it is not working. I also
found that the profile name that I have selected is not prefixed to any of
the other user ids.

"SvenC" wrote:

Hi Sue,

Actually, it should be possible to do that by prefixing the userID
with "=" to force an exact match, e.g. "=" & UserId

I tested that a while ago and had problems with it. It could be
different behaviour for Exchange Server MAPI and Outlook MAPI.
IIRC it did not work for Exchange MAPI and ExchangeMAPICDO

--
SvenC



  #18  
Old April 29th 08, 01:12 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default MAPI Session Logon error

An alternative would be to provide the name of a profile.

--
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 ...
As I informed, the appointments are getting created, if the below statement
is used for the logon

Call oSession.Logon(, , True, False)

But the issue is, the current profile has to be selected from the list,
which cannot be accomodated in the application that has been developed.

As far as the resolution of the user ID, it happens correctly and gets
resolved as expected.

Proper permissions have also been given to user id.

"Sue Mosher [MVP-Outlook]" wrote:

If you type that UserID into the To box of a message, does it resolve to an Exchange user?

Have you checked permissions on the mailbox?



"AVIS" wrote in message ...
Sorry, what I meant was user IDs and not profile names. Still the problem is
not getting resolved for me and i have tried all the options or help
provided, but was not able to proceed on this.

"Sue Mosher [MVP-Outlook]" wrote:

Profile names and user IDs are two completely different things.

"AVIS" wrote in message ...
Hi,

I tried implementing ur suggestions, but still it is not working. I also
found that the profile name that I have selected is not prefixed to any of
the other user ids.

"SvenC" wrote:

Hi Sue,

Actually, it should be possible to do that by prefixing the userID
with "=" to force an exact match, e.g. "=" & UserId

I tested that a while ago and had problems with it. It could be
different behaviour for Exchange Server MAPI and Outlook MAPI.
IIRC it did not work for Exchange MAPI and ExchangeMAPICDO

--
SvenC



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CDO Outlook security prompt hangs, vb script Mapi Session [email protected] Outlook and VBA 2 April 17th 08 11:03 AM
OLK2007 : The Oper Failed : Application.CreateObject("MAPI.Session Bill Billmire Outlook - Using Forms 3 January 7th 07 01:02 AM
Redemption+CBuilder: RDOSession.Logon MAPILogonEx-Error [email protected] Add-ins for Outlook 2 September 1st 06 08:32 AM
MAPI error jackie Outlook - Using Forms 0 August 18th 06 04:28 PM
Error creating an MAPI session Dominique Schroeder Outlook - Using Forms 1 March 7th 06 02:25 PM


All times are GMT +1. The time now is 11:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.