I want to use AlternateView.CreateAlternateViewFromString to generate an email but I am unsuccessful in doing so without actually getting an error. What is up?Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
Dim exc As Exception = Server.GetLastError
' Handle HTTP errors (avoid trapping HttpUnhandledException
' which is generated when a non-HTTP exception
' such as the ones generated by buttons 1-3 in
' Default.aspx is not handled at the page level).
If (exc.GetType Is GetType(HttpException)) Then
' The Complete Error Handling Example generates
' some errors using URLs with "NoCatch" in them;
' ignore these here to simulate what would happen
' if a global.asax handler were not implemented.
If exc.Message.Contains("NoCatch") Then
Dim ErrorDescription As String = exc.ToString()
'Dim Event_Log_Name As String = "CMDB ERROR"
'Dim log As EventLog = New EventLog
View Complete Post