Re: Access to Exchange Server with CDO in a Windows Service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Bertrand (bertrand.forestier_at_maxsea.fr)
Date: 04/29/04

  • Next message: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
    Date: 29 Apr 2004 00:24:14 -0700
    
    

    Thanks for those advices.
    My service must get e-mail on the exchange server from a windows
    service in order to process data automatically.

    The problem comes from the environment. My Windows service runs on one
    computer and Exchange runs on the other one.

    It is possible to get mail easily from an Exchange Server with WebDav
    and how ?
    (links...?)

    How to resolve the identification problem of a Windows service, what
    is the solution to provide a login and a password to access Exchange
    server without using Windows identification layer ?

    Thanks for help.

    Bertrand Forestier.

    "Henning Krause" <newsgroup.no@spam.infinitec.de> wrote in message news:<OTVDCvULEHA.3332@TK2MSFTNGP10.phx.gbl>...
    > Hello,
    >
    > it is generally a bad idea to use managed CDO from within a server
    > application (in this case, a service). On one hand, it is officially not
    > supported by Microsoft, and on the other hand are security issues. There are
    > several security fixes that cause popup windows to appear when certain CDO
    > functions are invoked. These cannot be handled in a service application.
    >
    > It would be a better way to use CDOEX or WebDAV.
    >
    > What does your service do?
    >
    > Henning Krause
    >
    > "Bertrand" <bertrand.forestier@maxsea.fr> wrote in message
    > news:51395ac4.0404270756.6eececd2@posting.google.com...
    > > I'm developping a C# windows service that accesses to an Exchange
    > > Server thanks to CDO.
    > >
    > > The problem comes from the fact I'm developing a Windows service.
    > >
    > > Indeeded when i try to launch the service, i got this error message :
    > >
    > > System.ArgumentException: [Collaboration Data Objects -
    > > [E_INVALIDARG(80070057)]]
    > > at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
    > > BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
    > > msgData)
    > > at MAPI.SessionClass.Logon(Object ProfileName, Object
    > > ProfilePassword, Object ShowDialog, Object NewSession, Object
    > > ParentWindow, Object NoMail, Object ProfileInfo)
    > > at MailAccessLayer.ExchangeAccess.logOn(String nomServeurExchange,
    > > String nomBoiteMail)
    > >
    > > The configuration of my service is correct and i open the session
    > > service with
    > > my personal account(login,password).
    > >
    > > But when i'm doing the same program as an application (and not as a
    > > service)
    > > there are no errors and i manage to log to Exchange Server.
    > >
    > > Did anyone have got this problem ?
    > >
    > > Have you got other solutions to access Exchange Server without the
    > > problem
    > > of windows profile and identification (for example with a login and a
    > > password) ?
    > >
    > > Thanks for help.
    > >
    > > Bertrand.


  • Next message: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"

    Relevant Pages

    • RE: DST update for Exchange 2003 and Outlook 2003
      ... then apply the Exchange Server patch. ... Install the Windows OS update to the SBS 2003 server and all Windows ... Microsoft Update on 2/13/2007). ...
      (microsoft.public.exchange.admin)
    • RE: DST update for Exchange 2003 and Outlook 2003
      ... then install KB926666 again onto the Exchange Server. ... I also have users running on stand-alone PC's (Windows XP) ... Install the Windows OS update to the SBS 2003 server and all Windows ... Microsoft Update on 2/13/2007). ...
      (microsoft.public.exchange.admin)
    • Re: Outlook authentication
      ... Windows Registry Editor Version 5.00 ... > users being able to access the exchange server through outlook. ... > BUT if someone who has administrator rights types in their ... What is outlook doing behind the scenes when you start it up. ...
      (microsoft.public.exchange2000.clients)
    • Re: CDO session logoff
      ... > at a separate server than the exchange server and the two servers are ... > platform is that the application is a windows service and is NOT to ... I am not familiar with Marshal concept while using CDO. ... Will it also resolve the service hang up problem. ...
      (microsoft.public.win32.programmer.messaging)
    • SBS2003 - Active Sync - http_500
      ... Windows Integrated Authentication is not enabled on the Exchange ... virtual directory on the Exchange server. ... verified - thats not the problem ...
      (microsoft.public.windows.server.sbs)