Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Spider Simulators can't see site

  1. #1
    MSD is offline Member
    Join Date
    Sep 2009
    Location
    EST
    Posts
    57

    Default Spider Simulators can't see site

    We have tested more than a few spider simulator tools that can't view our new site. Testing a competitors site in the same tool seems fine. We are also having a problem with Google Adwords giving us a message for keywords "Rarely shown due to low quality score".

    We have plenty of keywords and understand all about text vs images but somthing in our setup must be breaking the site from an SEO point of view. The Robot.txt is default and this is a V9013 store. Anyone recognize these telltale signs.

    I am not sure what to do and without Adwords we are very limited.

    Thanks...

    MSD
    Started V8 switched half way to V9 /// I need a V9 Forum

    AspDotNetStorefrontML 9.0.1.3/9.0.1.3 AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  2. #2
    webopius is offline Senior Member
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    440

    Default

    Hi,

    What's your site URL and I'll take a look?

  3. #3
    jsimacek is offline Senior Member
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    373

    Default

    Ok, we found the error to be in the /App_Code/SkinBase.cs file in the CheckUserAgentForMobile method: (see the Compunix header/fix below in bold) - basically the UserAgent object is null with a spider/crawler


    public bool CheckUserAgentForMobile
    {
    get
    {
    using (SqlConnection conn = new SqlConnection(DB.GetDBConn()))
    {
    conn.Open();

    //COMPUNIX String usrAgent = HttpContext.Current.Request.UserAgent.ToLowerInvar iant();
    String usrAgent = "";
    try
    {
    usrAgent = HttpContext.Current.Request.UserAgent.ToLowerInvar iant();
    }
    catch { }


    using (IDataReader rs = DB.GetRS("select UserAgent from dbo.MobileDevice with(NOLOCK)", conn))
    {
    while (rs.Read())
    {
    String mDevice = DB.RSField(rs, "UserAgent").ToLowerInvariant();

    if (usrAgent.Contains(mDevice))
    {
    rs.Close();
    rs.Dispose();

    return true;
    }
    }
    }
    conn.Close();
    conn.Dispose();
    }

    return false;
    }
    }
    Jan Simacek - Compunix, LLC
    AspDotNetStorefront trusted Devnet Partner and Reseller since 2005

    AspDotNetStorefront Mods and Add-Ons at http://www.ecommercecartmods.com/
    - Searching, Filtering and Sorting (like cSearch, Dealer Locator, Price Ranges, Blog)
    - Reports (like Cart Abandonment and Net Sales)
    - Customer Experience (like Question/Answers)
    - Site and Data Management (like Entity Product Mapper, Bulk Updaters, Make/Model/Year filters)

  4. #4
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    Nice catch Jan!