Error executing DTS from vb.net app

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a simple SQL Server DTS package with a Send Mail task. The package
executes successfully when I manually run the package. However, when I
access the package through a VB.NET app, it fails at "MapiLogonEx Failed due
to MAPI error 273: MAPI Logon failed". The package runs successfully without
the Send Mail task through app. Any ideas or help would be greatly
appreciated. This is the actual error




Step "DTSStep_DTSExecuteSQLTask_1" Succeeded



Step "DTSStep_DTSExecuteSQLTask_2" Succeeded



Step "DTSStep_DTSSendMailTask_1" Failed

Error: -2147220352

Source: Microsoft Data Transformation Services (DTS) Package

Description: Logon failed: MapiLogonEx Failed due to MAPI error 273: MAPI
Logon failed.

any ideas?

Thanks
 
Chris,

Because of the fact that the difference is the VBNet application, than it is
maybe wise to give the code you use in that part. Not that I probably can
help you with this (you never know when it is a more general problem).
However others will need that most probably as well.

Because that it only exist if it happens from vbnet. I would in your place
sent this message as well to the newsgroup languages.vb. (With the code of
course). When you have this kind of questions next time, than I would (again
in your place) sent them crossposted to this newsgroup, the newsgroup
framework.adonet and languages.vb.

Cor
 
Looks like permission problem.Make sure ASPNet user has enough permission to
those mapi objects
 
Back
Top