Home All Groups Group Topic Archive Search About

MAPI logon fails through SQL Job

Author
16 Feb 2006 4:28 PM
Sachin Vaishnav
Hi!
I have got a VB.NET exe which is using MAPI object to read the emails.
Now, the exe works excellent if I execute it independently. However, my
requirement is, I have to call this exe through SQL Jobs (SQL Agent). Now,
when I do that way, the MAPI logon fails, everytime.

It is giving me this error:
[Collaboration Data Objects - [MAPI_E_LOGON_FAILED(80040111)]]

Please help!

Regards,
Sachin Vaishnav

Author
17 Feb 2006 12:05 AM
AMDRIT
What account does SQL Agent log in as?  Perhaps, if you set the Agent to run
as (say you) you would have better success.


Show quote
"Sachin Vaishnav" <SachinVaish***@discussions.microsoft.com> wrote in
message news:6F9303A8-9E27-459D-B2B7-7DFD9CDEEB79@microsoft.com...
> Hi!
> I have got a VB.NET exe which is using MAPI object to read the emails.
> Now, the exe works excellent if I execute it independently. However, my
> requirement is, I have to call this exe through SQL Jobs (SQL Agent). Now,
> when I do that way, the MAPI logon fails, everytime.
>
> It is giving me this error:
> [Collaboration Data Objects - [MAPI_E_LOGON_FAILED(80040111)]]
>
> Please help!
>
> Regards,
> Sachin Vaishnav

AddThis Social Bookmark Button