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 12 of 12

Thread: Error Message While Updating Display Order

  1. #1
    lweedop is offline Junior Member
    Join Date
    Mar 2013
    Posts
    9

    Default Error Message While Updating Display Order

    Hey guys,

    I'm new to the forum and have very little experience with aspdotnetstorefront so take it easy on me.

    I have a fairly large category that I'm trying to adjust the display order for. The category has 1265 items.

    When I click the "Order Update" button this is the error I receive: GeneralException | Error | Exception of type 'System.Web.HttpUnhandledException' was thrown.

    I'm running version 9.2 Multistore.

    Please let me know if you need additional information. Any help would be greatly appreciated!

  2. #2
    GoVedia is offline Member
    Join Date
    Oct 2012
    Location
    Orange, CA
    Posts
    98

    Default

    Hello, and welcome to the forum!

    Could you provide more error details, including the Error StackTrace. Check your System Log for more information regarding the error. From your admin console, go to Configuration --> Maintenance --> View System Log. Click on the arrow to the left of the error for more info.

    Also, it would be of interest to know if the error presents itself when updating other categories, with a smaller number of products.

    Let me know!
    Robert
    Robert Kanaan
    AspDotNetStorefront Development Partner
    robert@GoVedia.com
    408-758-8845

    GoVedia
    http://GoVedia.com
    Approved AspDotNetStorefront Development Partner
    AspDotNetStorefront Recommended Reseller

  3. #3
    lweedop is offline Junior Member
    Join Date
    Mar 2013
    Posts
    9

    Default

    Thanks for taking the time to look at this for me, Robert.

    Here are the error details:

    Page URL:/pcadmin/entityProductBulkDisplayOrder.aspx
    Source:System.Web
    Message:The URL-encoded form data is not valid.
    Stack Trace:
    at System.Web.HttpRequest.FillInFormCollection()
    at System.Web.HttpRequest.get_Form()
    at System.Web.HttpRequest.get_HasForm()
    at System.Web.UI.Page.GetCollectionBasedOnMethod(Bool ean dontReturnNull)
    at System.Web.UI.Page.DeterminePostBackMode()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


    The error only happens with larger categories. I have no problem updated the display order of smaller categories.

    Lyndsey

  4. #4
    GoVedia is offline Member
    Join Date
    Oct 2012
    Location
    Orange, CA
    Posts
    98

    Default

    Hi Lyndsey,

    Note: The following updates will cause your site to restart. Do pay particularly close attention when working on a production site.

    I suspect your issue is related to the number of form fields being posted; exceeding the number allowed. If you are comfortable making code level changes, you may be able to resolve the issue, by modifying the following line of code in your web.config:
    Code:
    <add key="aspnet:MaxHttpCollectionKeys" value="2000" />
    Try increasing the value to 5000.

    Also important to look over, is the following Microsoft KB article http://support.microsoft.com/kb/2661403. It provides more details regarding the limits and security concerns relating to the MaxHttpCollectionKeys config key.

    Let me know if that works out for you.
    Robert
    Robert Kanaan
    AspDotNetStorefront Development Partner
    robert@GoVedia.com
    408-758-8845

    GoVedia
    http://GoVedia.com
    Approved AspDotNetStorefront Development Partner
    AspDotNetStorefront Recommended Reseller

  5. #5
    lweedop is offline Junior Member
    Join Date
    Mar 2013
    Posts
    9

    Default

    Robert,

    I'm not finding the line of code to which you are referring in my web.config. I see several other keys such as EncryptKey, DBSQLServerLocaleSetting, and SiteDownForMaintenance to name a few. These are all between the <appSettings> tags. Is the MaxHttpCollectionKeys key something I need to add?

    Thank you for the heads up on the security concerns. I'll be sure to consider it carefully before I make any changes.

    Lyndsey

  6. #6
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    The alternative way to do this, if you can't resolve this with the previous suggestion, would be to export the data from the SQL table to Excel, make the changes there and then re-import the data.
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  7. #7
    lweedop is offline Junior Member
    Join Date
    Mar 2013
    Posts
    9

    Default

    Quote Originally Posted by esedirect View Post
    The alternative way to do this, if you can't resolve this with the previous suggestion, would be to export the data from the SQL table to Excel, make the changes there and then re-import the data.
    Is there some sort of plugin I need to export all of the product data? I have the option to import data as well as the option to import/export prices.

  8. #8
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    My suggestion is based on access to the database itself through your webserver using Microsoft SQL Server Management Studio. Perhaps that's not possible for you or you don't have the technical background. I don't know from your posts.
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  9. #9
    lweedop is offline Junior Member
    Join Date
    Mar 2013
    Posts
    9

    Default

    That would certainly be stretching my expertise but the owner of our company may have the capability. Thanks for the suggestion, I'll keep it in mind!

  10. #10
    GoVedia is offline Member
    Join Date
    Oct 2012
    Location
    Orange, CA
    Posts
    98

    Default

    Quote Originally Posted by lweedop View Post
    Robert,

    I'm not finding the line of code to which you are referring in my web.config. I see several other keys such as EncryptKey, DBSQLServerLocaleSetting, and SiteDownForMaintenance to name a few. These are all between the <appSettings> tags. Is the MaxHttpCollectionKeys key something I need to add?

    Thank you for the heads up on the security concerns. I'll be sure to consider it carefully before I make any changes.

    Lyndsey
    Yes, go ahead and add it before the appSettings closing tag in your web.config. For example:
    Code:
    	<add key="aspnet:MaxHttpCollectionKeys" value="2000" />
    	</appSettings>
    Try starting with 2000, and increasing the value if it doesn't work. Since you did not already have the key, it would have defaulted to 1000.

    Let me know if that works out.
    Robert Kanaan
    AspDotNetStorefront Development Partner
    robert@GoVedia.com
    408-758-8845

    GoVedia
    http://GoVedia.com
    Approved AspDotNetStorefront Development Partner
    AspDotNetStorefront Recommended Reseller

  11. #11
    lweedop is offline Junior Member
    Join Date
    Mar 2013
    Posts
    9

    Default

    Worked like a charm, Robert. Thank you so much for your help!

  12. #12
    GoVedia is offline Member
    Join Date
    Oct 2012
    Location
    Orange, CA
    Posts
    98

    Thumbs up

    You're welcome!
    Robert Kanaan
    AspDotNetStorefront Development Partner
    robert@GoVedia.com
    408-758-8845

    GoVedia
    http://GoVedia.com
    Approved AspDotNetStorefront Development Partner
    AspDotNetStorefront Recommended Reseller