Bug reports
Version 3.x > Bug reports > Minor exception for bad browser HTTP headers View modes: 
User avatar
Member
Member
Mufasa - 1/16/2009 9:47:20 AM
   
Minor exception for bad browser HTTP headers
Some browsers (probably bots or spiders or something) send bad header information. This causes calls to HttpContext.Current.Request.Browser.MajorVersion (and MinorVersion) to throw an HttpUnhandledException, which is not handled by Kentico.

You should wrap a try/catch block around the two calls to the Version properties in App_Code/Global.asax.cs lines 411 and 441. (from Kentico version 3.1a).

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/22/2009 6:11:05 AM
   
RE:Minor exception for bad browser HTTP headers
Hi,

Could you please send us the error message you got?
Also, if you turn the debug mode on for more details, it will be appreciated. Thank you in advance.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
Mufasa - 1/22/2009 3:24:07 PM
   
RE:Minor exception for bad browser HTTP headers
Well, because of the clever code you wrote for the Event detail on the Event Log in IE, I can't cut & paste the log message directly. But basically it's just what I said above. It throws an HttpUnhandledException and I tracked it down to the lines I mentioned originally.

User avatar
Member
Member
Mufasa - 1/22/2009 3:25:07 PM
   
RE:Minor exception for bad browser HTTP headers
(Oh, you have an Export Details link on the Event detail page. I'd still prefer just letting us cut & paste.)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/26/2009 2:15:33 AM
   
RE:Minor exception for bad browser HTTP headers
Hi,

Yeah, you are right, I will try to ask our CTO to make it "copyable". Anyway, you can easily make a screen shot and send it to use to suppot@kentico.com

We need to see the stack trace (e.g. from debug) to see where exactly is the exception thrown.

Thank you in advance.

Best Regards,
Juraj Ondrus