Re: Access to Exchange Server with CDO in a Windows Service
From: Bertrand (bertrand.forestier_at_maxsea.fr)
Date: 04/29/04
- Previous message: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
- In reply to: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
- Next in thread: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
- Reply: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
- Messages sorted by: [ date ] [ thread ]
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.
- Previous message: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
- In reply to: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
- Next in thread: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
- Reply: Henning Krause: "Re: Access to Exchange Server with CDO in a Windows Service"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|