diff --git a/Site/Global.asax b/Site/Global.asax index 72b1ac7f..1177582a 100644 --- a/Site/Global.asax +++ b/Site/Global.asax @@ -1,6 +1,7 @@ <%@ Application Language="C#" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.Collections.Generic" %> +<%@ Import Namespace="System.Web.ExtensionMethods" %> <%@ Import Namespace="Swarmops.Database" %> <%@ Import Namespace="Swarmops.Logic.Support" %> @@ -26,6 +27,7 @@ Exception exc = this.Server.GetLastError(); Persistence.Key["LastUncaughtException"] = exc.ToString(); + Persistence.Key["LastUncaughtExceptionRequest"] = Request.ToRaw(); SwarmDb.GetDatabaseForWriting().CreateExceptionLogEntry (DateTime.UtcNow, "Application", exc); // TODO: Move to Logic // Code that runs when an unhandled error occurs }