"Jose Enrique" <eaguado@jusan.es> wrote in news:uWgh8fu0FHA.3188
@TK2MSFTNGP14.phx.gbl:
> The exact code for login,
>
> strProfileInfo = g_cServidorExchange & vbLf & cNombreExchange
>
> ObjSession.Logon "", "", False, True, 0, True, strProfileInfo
That code is fine, so -- does it have the same problems if you run as a
normal app rather than a service? Does it make a difference if you
restructure your code to log in once to each session (so you'd have two
session objects), then check the calendars every five minutes and stay
logged in all the time?
There's nothing obviously wrong with your code, unfortunately, so there's
no easy solution. Have you applied all the relevant service packs to the
Outlook/Exchange installed on that machine?
-- dan
Jose Enrique - 18 Oct 2005 08:05 GMT
Thanks Dan,
I have modified the program. I open the sessions in the beginning of the
program and I close them when the program is stopped. I put the new version
version yesterday at 15:00 PM and today the program is still running. It
seems that this can be the solution. I tell you if all is ok.
About the service packs, it's a difficult subject. I'm programming in Spain
and the program is running in Norway. It is difficult knowing if an user has
all the service pack installed...
Again thanks for your solution and thanks for spending your time helping me
and I tell you about the program. I hope this solution will be the right
one. if I can help you in something tell me. My personal email es
jeaguado@wanadooadsl.net and my business email es eaguado@jusan.es.
José Enrique
Dan Mitchell - 19 Oct 2005 01:04 GMT
> I have modified the program. I open the sessions in the beginning of
> the program and I close them when the program is stopped. I put the
> new version version yesterday at 15:00 PM and today the program is
> still running. It seems that this can be the solution. I tell you if
> all is ok.
Okay, that's good news. I'm not sure why the problem was happening, but
this should be a solution.
> Again thanks for your solution and thanks for spending your time
> helping me and I tell you about the program.
No trouble -- glad to help!
-- dan