Hi John,
You can try the foolowing code snippet to do the same:
<%@ Application Language="C#" %>
<%@ Import Namespace="System.Diagnostics" %>
<script language="C#" runat="server">
void Application_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError().GetBaseException();
EventLog.WriteEntry("Test Web",
"MESSAGE: " + ex.Message +
"\nSOURCE: " + ex.Source +
"\nFORM: " + Request.Form.ToString() +
"\nQUERYSTRING: " + Request.QueryString.ToString() +
"\nTARGETSITE: " + ex.TargetSite +
"\nSTACKTRACE: " + ex.StackTrace,
EventLogEntryType.Error);
}
</script>
HTH
Mona[Grapecity]
"John Holgerson" <do**********@web.de> wrote in message
news:f9**************************@posting.google.c om...
Hi, is it possible to get informations about the exception that
occured in that method??
(global.asax)
protected void Application_Error(Object sender, System.EventArgs e) {
}
thanks for help
John