G
Guest
I'm getting a {"Parser Error: The Runat attribute must have the value
Server." } error when I try to get the Server.GetlastError() in the
Global.asax codebehind.
Why am I getting this?
I tried to remove the code-behind and add the <script language="C#"
runat="server"> but that fails as well.
The code is simply:
protected void Application_Error( object src, EventArgs e )
{
Exception exc = Server.GetLastError(); // fails here
Trace.Write (exc.Message.ToString());
}
I've found nothing anywhere on this.
Thanks for your help
--Andy
Server." } error when I try to get the Server.GetlastError() in the
Global.asax codebehind.
Why am I getting this?
I tried to remove the code-behind and add the <script language="C#"
runat="server"> but that fails as well.
The code is simply:
protected void Application_Error( object src, EventArgs e )
{
Exception exc = Server.GetLastError(); // fails here
Trace.Write (exc.Message.ToString());
}
I've found nothing anywhere on this.
Thanks for your help
--Andy