I have this code in Global.asax, but it doesn't compile yet.
What am i doing wrong?
protected void Application_Error(Object sender, EventArgs e)
{
Exception objErr = Server.GetLastError().GetBaseException();
string msg = objErr.ToString();
if (objErr.GetType is HttpException)
{
// Need to bypass 404 errors
ErrNotify.LogError(msg);
}
else
{
ErrNotify.LogError(msg);
}
Server.ClearError();
}
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)