![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |