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

CDO Outlook security prompt hangs, vb script Mapi Session



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 29th 08, 09:22 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 1
Default CDO Outlook security prompt hangs, vb script Mapi Session

User is on

Windows XP Pro SP2
Office 2003 XP SP2

Using an Outlook 2003 custom form

set Session1 = CreateObject("MAPI.Session")
msgbox "Before Logon"
on error resume next
Session1.Logon "","",False,False
msgbox "After Logon"

msgbox Session1.CurrentUser.Fields(CdoPR_TITLE).Value

msgbox "After Security Prompt"


User get's the message box "After Logon"
The next line trying to display the users Title hangs Outlook and the
security prompt never appears.

This works fine for me on my own computer and works fine for me if I
am logged on to the same computer the users is on.

CDO file versions are slightly different
6.5.7232.92 on the users computer
6.5.7233.48 on mine.


Can't figure this one out, the settings on the Outlook account are
identical to mine.
  #2  
Old January 30th 08, 02:14 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default CDO Outlook security prompt hangs, vb script Mapi Session

I wouldn't worry about the versions since you don't have a problem when
using your own logon on that computer. When you use your own logon I'm
assuming you mean a different Windows logon? Perhaps your organization is
using the Exchange security form to limit the uses of CDO methods and
properties to certain groups in the AD? That might explain it.

Normally you would receive an Outlook security warning when the code
accessed Session.CurrentUser, since that's restricted by client-side CDO. If
you didn't get that warning when you ran the code then either your logon is
permitted to use that in code based on the security form, or the code was
run under server-side CDO, which is not security restricted.

--
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


wrote in message
...
User is on

Windows XP Pro SP2
Office 2003 XP SP2

Using an Outlook 2003 custom form

set Session1 = CreateObject("MAPI.Session")
msgbox "Before Logon"
on error resume next
Session1.Logon "","",False,False
msgbox "After Logon"

msgbox Session1.CurrentUser.Fields(CdoPR_TITLE).Value

msgbox "After Security Prompt"


User get's the message box "After Logon"
The next line trying to display the users Title hangs Outlook and the
security prompt never appears.

This works fine for me on my own computer and works fine for me if I
am logged on to the same computer the users is on.

CDO file versions are slightly different
6.5.7232.92 on the users computer
6.5.7233.48 on mine.


Can't figure this one out, the settings on the Outlook account are
identical to mine.


  #3  
Old April 17th 08, 11:03 AM posted to microsoft.public.outlook.program_vba
AVIS
external usenet poster
 
Posts: 17
Default CDO Outlook security prompt hangs, vb script Mapi Session

Instead of the below statement
Session1.Logon "","",False,False
Replace with
Session1.Logon "","",True,False
Then try to update the local machine mail profile of the user, who is having
the problem, with his/her details.

This is a solution, since I am having the same problem and found this fix.
But I cannot apply this fix to my application, I am planning to start a
seperate thread for my issue.

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

I wouldn't worry about the versions since you don't have a problem when
using your own logon on that computer. When you use your own logon I'm
assuming you mean a different Windows logon? Perhaps your organization is
using the Exchange security form to limit the uses of CDO methods and
properties to certain groups in the AD? That might explain it.

Normally you would receive an Outlook security warning when the code
accessed Session.CurrentUser, since that's restricted by client-side CDO. If
you didn't get that warning when you ran the code then either your logon is
permitted to use that in code based on the security form, or the code was
run under server-side CDO, which is not security restricted.

--
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


wrote in message
...
User is on

Windows XP Pro SP2
Office 2003 XP SP2

Using an Outlook 2003 custom form

set Session1 = CreateObject("MAPI.Session")
msgbox "Before Logon"
on error resume next
Session1.Logon "","",False,False
msgbox "After Logon"

msgbox Session1.CurrentUser.Fields(CdoPR_TITLE).Value

msgbox "After Security Prompt"


User get's the message box "After Logon"
The next line trying to display the users Title hangs Outlook and the
security prompt never appears.

This works fine for me on my own computer and works fine for me if I
am logged on to the same computer the users is on.

CDO file versions are slightly different
6.5.7232.92 on the users computer
6.5.7233.48 on mine.


Can't figure this one out, the settings on the Outlook account are
identical to mine.



 




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
Outlook security prompt - having problem getting rid of it Sue Mosher [MVP-Outlook] Outlook and VBA 0 June 4th 07 12:28 PM
Outlook security prompt - can't get rid of it John Outlook - General Queries 1 June 3rd 07 06:38 PM
Outlook security prompt - can't get rid of it John Outlook and VBA 1 June 3rd 07 06:38 PM
OLK2007 : The Oper Failed : Application.CreateObject("MAPI.Session Bill Billmire Outlook - Using Forms 3 January 7th 07 01:02 AM
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 12:29 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.