I consistently get the exception below in Firefox browsers. it seems related to the web analytics module. It happens on all pages, but not on other sites on the same application instance. The exception stops occuring when I disable the option
Track browser types.
Server Error in '/' Application.
Index and count must refer to a location within the string.
Parameter name: count
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string.
Parameter name: count
Source Error:
Line 1034: if (AnalyticsHelper.TrackBrowserTypesEnabled(siteName.Value))
Line 1035: {
Line 1036: string browser = HttpContext.Current.Request.Browser.Browser + HttpContext.Current.Request.Browser.MajorVersion.ToString() + "." + (HttpContext.Current.Request.Browser.MinorVersion > 0 ? HttpContext.Current.Request.Browser.MinorVersion.ToString().Remove(0, 2) : "0");
Line 1037: HitLogProvider.LogHit(HitLogProvider.BROWSER_TYPE, siteName.Value, null, browser, 0);
Line 1038: }
Source File: c:\sites\vhosts\vpsshared.app\httpdocs\App_Code\Global.asax.cs Line: 1036
Stack Trace:
[ArgumentOutOfRangeException: Index and count must refer to a location within the string.
Parameter name: count]
System.String.RemoveInternal(Int32 startIndex, Int32 count) +0
System.String.Remove(Int32 startIndex, Int32 count) +22
Global.LogVisitor(SiteNameOnDemand siteName) in c:\sites\vhosts\vpsshared.app\httpdocs\App_Code\Global.asax.cs:1036
Global.RewriteUrl(String relativePath, ExcludedSystemEnum excludedEnum, ViewModeOnDemand viewMode, SiteNameOnDemand siteName) in c:\sites\vhosts\vpsshared.app\httpdocs\App_Code\Global.asax.cs:571
Global.Application_AuthorizeRequest(Object sender, EventArgs e) in c:\sites\vhosts\vpsshared.app\httpdocs\App_Code\Global.asax.cs:320
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75