This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'. | |
Cannot insert the value NULL into column 'SentEmailID', table '@SentEmails'; column does not allow nulls. INSERT fails. | |
The statement has been terminated. | |
at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__126_0(Task`1 result) | |
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() | |
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) | |
--- End of stack trace from previous location where exception was thrown --- | |
at Dapper.SqlMapper.QueryAsync[T](IDbConnection cnn, Type effectiveType, CommandDefinition command) in C:\projects\dapper\Dapper\SqlMapper.Async.cs:line 419 |