|
Home > Archive > MS SQL Server > February 2006 > Job Exe calling MAPI object, fails
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Job Exe calling MAPI object, fails
|
|
| Sachin Vaishnav 2006-02-16, 11:23 am |
| 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 - & #91;MAPI_E_LOGON_FAI
LED(80040111)]]
Please help!
Regards,
Sachin Vaishnav
| |
| Geoff N. Hiten 2006-02-16, 11:23 am |
| The SQL agent will use a MAPI profile associated with the SQL Agent service
login, not the currently logged-in console user. Log in to the console
using the SQL Agent service account and create the correct MAPI profile.
--
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Sachin Vaishnav" < SachinVaishnav@discu
ssions.microsoft.com> wrote in
message news:01864869-CAC2-45C9-A88A- 6E8102BF1F70@microso
ft.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 - & #91;MAPI_E_LOGON_FAI
LED(80040111)]]
>
> Please help!
>
> Regards,
> Sachin Vaishnav
|
|
|
|
|