Frequent Error from MobileDetection.IsMobileDevice

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
kreloses
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Wed Feb 17, 2010 10:45 pm

Frequent Error from MobileDetection.IsMobileDevice

Post by kreloses » Wed Apr 09, 2014 8:14 pm

Hi Guys,

I see this error every couple of days in my error log. No custom code around this area so just wondering if anyone can advise on the cause?

Also does able commerce log any more verbose (or can be configured to) information such as requested URL, input values on the exceptioning method etc?

I don't use the mobile site, its currently set to disabled -> so just wondering why this code would even be executing?

Thanks,


An error has occured at http://www.curvecables.asia/
Exception: Index and length must refer to a location within the string. Parameter name: length Stack Trace: at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at CommerceBuilder.Services.MobileDetection.IsMobileDevice(String userAgent) at CommerceBuilder.Services.MobileDetection.GetBrowserCapabilities(HttpRequest request) at System.Web.Configuration.HttpCapabilitiesBase.GetBrowserCapabilities(HttpRequest request) at System.Web.HttpRequest.get_Browser() at System.Web.Security.CookielessHelperClass.UseCookieless(HttpContext context, Boolean doRedirect, HttpCookieMode cookieMode) at System.Web.Security.FormsAuthenticationModule.ExtractTicketFromCookie(HttpContext context, String name, Boolean& cookielessTicket) at System.Web.Security.FormsAuthenticationModule.OnAuthenticate(FormsAuthenticationEventArgs e) at System.Web.Security.FormsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Frequent Error from MobileDetection.IsMobileDevice

Post by ForumsAdmin » Thu Apr 10, 2014 12:01 am

Which version of AC Gold are you at?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Frequent Error from MobileDetection.IsMobileDevice

Post by jmestep » Thu Apr 10, 2014 4:49 am

If you want to have more verbose logging without having to look at server logs or Able logs, you can install Elmah on the website. We have done that on some sites.
http://code.google.com/p/elmah/
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

kreloses
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Wed Feb 17, 2010 10:45 pm

Re: Frequent Error from MobileDetection.IsMobileDevice

Post by kreloses » Sat Apr 12, 2014 4:59 am

Hi, my version of Able commerce gold is == VERSION: 7.0.8.5410 - known issue perhaps?

Any further info there would be appreciated, thanks.

- Will take a look at this elmah application (thanks for the tip).


Cheers,

Post Reply