''' <summary> ''' Page Error handler ''' </summary> Protected Sub Page_Error(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Error Try Dim ex As Exception = Server.GetLastError().GetBaseException ErrorLog.GenererateLog(ex.TargetSite.Name, ex.Message, ex.Source, ex.StackTrace, Me.Form.Controls) Server.ClearError() Catch excpt As Exception End Try Response.Redirect("Error.aspx") End Sub