DBMail error

  • Have anyone seen this in the DB Mail Log before?

    Any ideas?

    Thanks in advance.

    Message

    1) Exception Information

    ===================

    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException

    Message: The Transaction not longer valid.

    Data: System.Collections.ListDictionaryInternal

    TargetSite: Void ValidateConnectionAndTransaction()

    HelpLink: NULL

    Source: DatabaseMailEngine

    StackTrace Information

    ===================

    at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.ValidateConnectionAndTransaction()

    at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.RollbackTransaction()

    at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.QueueItemProcesser.GetDataFromQueue(DataAccessAdapter da, Int32 lifetimeMinimumSec)

    at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.QueueItemProcesser.ProcessQueueItems(String dbName, String dbServerName, Int32 lifetimeMinimumSec, LogLevel loggingLevel)

  • Check to see if you have an anti-virus or other product that is blocking port 25 on your machine.



    Shamless self promotion - read my blog http://sirsql.net

  • I was able to send test email with no problem.

    This is mainly from application.

    Not sure what is 'Transaction is no more valid.'

  • Did you restart SQL server agent service after enabling the Database Mail?

  • Do you have any entries in the msdb.dbo.sysmail_event_log ?



    Shamless self promotion - read my blog http://sirsql.net

  • The same msg is in the sysmail_event_log and I didnt restart SQL Server Agent.

    Thanks.

  • Then restart the Sql Server agent. It is required to see the mail changes you made. It won't email to operators until after you restart the service.

  • Could you post the code that you are using to attempt sending the email?



    Shamless self promotion - read my blog http://sirsql.net

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply