Если ошибка возникает в вашем приложении ASP.NET, вы можете ее перехватить и отправить по электронной почте.
Вы можете отловить ошибку в файле Global.asax ...
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
Dim sb As New StringBuilder
sb.AppendFormat("Page Location: {0}", Context.Request.RawUrl)
With Server.GetLastError.GetBaseException
sb.AppendFormat("Message: {0}", .Message)
sb.AppendFormat("Source: {0}", .Source)
sb.AppendFormat("Method: {0}", .TargetSite)
sb.AppendFormat("Stack Trace: {0}", .StackTrace)
End With
Dim ErrorMsg As String = sb.ToString()
' Post thee error to a logger...
End Sub
G.