Hi, every once in a while (less than 1% of the time) we are getting an error "Thread was being aborted." After examining the information we have from the error, I've narrowed it down to the fact that it must be inside the following code, a function inside the Global.asax.
public static string getSelectedLanguage()
{
if (HttpContext.Current.Request.Cookies["appcookies"] == null)
{
return Global.DEFAULT_LANGUAGE;
}
else if (HttpContext.Current.Request.Cookies["appcookies"]["language"] == null)
{
return Global.DEFAULT_LANGUAGE;
}
else if (HttpContext.Current.Request.Cookies["appcookies"]["language"] == "")
{
return Global.DEFAULT_LANGUAGE;
}
else
{
return HttpContext.Current.Request.Cookies["appcookies"]["language"];
}
}
Any idea how this could be happening?? I'm using .NET 1.1. Thanks!