none
Dataset serialization in State Server mode RRS feed

  • Question

  • In-Proc Mode:

    When data tables are added to dataset in the order A,B,C,D and assigned to session. When dataset is getting retrieved from the assigned session, same order of data tables A,B,C,D is maintained.

    State Server Mode:

    When data tables are added to dataset in the order A,B,C,D and assigned to session. When dataset is getting retrieved from the assigned session, data tables order is getting changed like A,D,B,C.

    Why is this and how to maintain the same order, when using State Server mode also? Please let me know.

    Thursday, February 16, 2017 1:26 PM

All replies

  • Hi Sureee, 

     ASP.NET Session State can store strings, ints, DataSets, and custom classes. Session comes in three flavors: InProc, StateServer, and SQL Server session state.

    InProc – session kept as live objects in web server (w3wp.exe). Use “cookieless” configuration in web.config to “munge” the sessionId onto the URL (solves cookie/domain/path RFC problems too!)

    StateServer – session serialized and stored in memory in a separate process (aspnet_state.exe). State Server can run on another machine

    SQLServer – session serialized and stored in SQL server

    For more details, please refer to blog:https://blogs.technet.microsoft.com/kennymaita/2012/02/13/basics-of-asp-net-session-state/

    Please also have a look at http://dotnetguts.blogspot.sg/2009/06/steps-for-session-inproc-mode-to.html

    Best regards,

    Kristin 


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by Kristin Xie Wednesday, February 22, 2017 1:38 AM
    Friday, February 17, 2017 6:23 AM