Global.asax not executed in ASP.NET application
Posted on 2004-03-29
I tried everuthing it just wont work. I have the following code:
<%@ import namespace="ErrLog" %>
<script language="C#" runat="server">
void Application_Error(Object sender, EventArgs e)
Exception objError = Server.GetLastError();
in my Global.asax file. It just wont get executed. It doesn't return an error, it just doesn't do anything. Everything works as if it wasn't there.
I read a post about having to restart the web site, i did that about 100 times, i tried using a codebehind page and the code above with the same results.