It's not my browser. I just get error reports emailed to me from my site and this is one that has occurred a few times. I assume its because whatever browser the person is using isn't recognized. Here is my code to get the previous error:
there are some people out there that run stupid bots/spiders that doesn't send an UserAgent header (or sometimes just a space). My best advice is to check that situation and close the page asap to stop wasting time with them.
Re: IsCompatibleBrowser Throwing Null Exception
The output at the bottom looks like you're not broadcasting a useful browser string.
Re: IsCompatibleBrowser Throwing Null Exception
string err = "Error in: " + Request.Url.ToString() +
"<br/>Url Referrer: " + Request.UrlReferrer.ToString() +
"<br/>Error Message: " + objErr.Message.ToString() +
"<br/><br/>Stack Trace: " + objErr.StackTrace.ToString() +
"<br/><br/>Inner Message: " + objErr.InnerException +
"<br/><br/>Inner Stack Trace: " + (objErr.InnerException != null ? objErr.InnerException.StackTrace : "") +
"<br/><br/>Host Address: " + Request.UserHostAddress +
"<br/><br/>Host Name: " + Request.UserHostName +
"<br/>Browser: " + Request.Browser.Browser + " " + Request.Browser.MajorVersion + ":" + Request.Browser.MinorVersion +
"<br/>Username: " +
(Context.User.Identity.IsAuthenticated ? Context.User.Identity.Name : "Not Authenticated").ToString();
Re: IsCompatibleBrowser Throwing Null Exception
Re: IsCompatibleBrowser Throwing Null Exception