Re: CDO Access Hangs Outlook
From: rg (rgunter_at_peachtree.com)
Date: 10/27/04
- Previous message: Sue Mosher [MVP-Outlook]: "Re: Hyperlinks in Text Boxes?"
- In reply to: Sue Mosher [MVP-Outlook]: "Re: CDO Access Hangs Outlook"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 27 Oct 2004 12:52:58 -0400
Sue,
The user did a detect and repair both before and after renaming cdo.dll, and
they still have the problem.
I compared the version on my machine, that is working correctly, with their
version:
cdo.dll, ver. 6.5.6980.13, is on the working machine;
cdo.dll, ver. 6.5.6980.74, is on the machine that is not working;
In addition, we have different versions of cdosys.dll.
We also tried registering the cdo.dll using regsvr on his machine--but it
did not help.
Thanks again,
Roy
"Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message
news:e%23NBYHCvEHA.3828@TK2MSFTNGP12.phx.gbl...
> I'd do a detect and repair, maybe even renaming cdo.dll first to make sure
> it gets updated. You should be getting a security prompt with
> Session.Addressbook on any machine with OUtlook 2000 SP2 or later.
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "rg" <rgunter@peachtree.com> wrote in message
> news:u6CJljBvEHA.3840@TK2MSFTNGP12.phx.gbl...
> >I am testing on a different machine to try to determine why it works on
> >some
> > machines and not on others.
> >
> > One difference I am seeing is that on machines that the forms work on,
you
> > will receive the Outlook object model guard security warning. The
> > sequence
> > on machines that are OK is:
> >
> > 1) Select the command button on the custom form that triggers that
CDO
> > session code.
> > 2) The AddressBook dialog opens with the cdoSession.AddressBook call.
> > 3) Select the recipient from the address book.
> > 4) Select OK on the AddressBook dialog.
> > 5) Outlook issues the object model guard security warning.
> > 6) Select "Allow access..." and "Yes" ... and everything is OK.
> >
> > On machines that the custom form is not working, the sequence is:
> >
> > 1) Select the command button on the custom form that triggers that
CDO
> > session code.
> > 2) The AddressBook dialog opens with the cdoSession.AddressBook call.
> > 3) Select the recipient from the address book.
> > 4) Select OK on the AddressBook dialog.
> > 5) Outlook hangs and the process must be ended from Task Manager.
> >
> > It looks as if the system is having problems generating that security
> > warning.
> >
> > I hope this helps.
> >
> > Roy
> >
> >
> > "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message
> > news:O906FM6uEHA.2876@TK2MSFTNGP12.phx.gbl...
> >> What's the context in which your code is running -- Outlook VBA, web
> >> page,
> >> etc.?
> >>
> >> --
> >> Sue Mosher, Outlook MVP
> >> Author of
> >> Microsoft Outlook Programming - Jumpstart for
> >> Administrators, Power Users, and Developers
> >> http://www.outlookcode.com/jumpstart.aspx
> >>
> >>
> >> "rg" <rgunter@peachtree.com> wrote in message
> >> news:%230x%23p%235uEHA.3728@TK2MSFTNGP12.phx.gbl...
> >> > Hello,
> >> >
> >> > Two Outlook 2003 users at my company are having the same problem as
the
> >> > post
> >> > at the end of this post.
> >> >
> >> > My code is similar (if not exactly the same--it is from a book
> >> > example).
> >> >
> >> > Set oCDOSession = application.CreateObject("MAPI.Session")
> >> >
> >> > oCDOSession.Logon "", "", False, False, 0
> >> >
> >> > http://support.microsoft.com/?kbid=177630 sounded like it might be
the
> >> > problem, but
> >> >
> >> > changing the Logon to
> >> >
> >> > oCDOSession.Logon "", "", False, False, 0, True
> >> >
> >> > did not fix the problem (although it still works on my computer).
> >> >
> >> > I did check to make sure that the CDO component of Outlook 2003 was
> >> > installed (via the MS Office 2003 Install).
> >> >
> >> > I have the appcompat.txt that MS created because of the error.
> >>
> >>
> >
> >
>
>
- Previous message: Sue Mosher [MVP-Outlook]: "Re: Hyperlinks in Text Boxes?"
- In reply to: Sue Mosher [MVP-Outlook]: "Re: CDO Access Hangs Outlook"
- Messages sorted by: [ date ] [ thread ]