Arr to IIS aspx app (ASP.NET Session ID)RSS

5 replies

Last post Aug 01, 2018 07:36 AM by Rovastar

  • Arr to IIS aspx app (ASP.NET Session ID)

    May 30, 2018 12:51 AM|fben|LINK

    Hello, good evening, everyone. I am incorporating an ARR server to blanve two IIS application servers (aspx). The question is that when I pass the requests through the and I route them to a server farm, in the IIS that hosts the application I have problems that indicate this.

    Multiple requests in the process state with the same ASP.NET Session ID were detected in the dump file. At any point of time, ASP.NET executes only one request with the same session id and the remaining requests are queued behind the request which is getting executed.

    Please check why you got more than one request for the same ASP.NET Session ID by viewing the HTTP report and the ASP.NET Session ID Report</div> <div class="group mt20"></div> <div class="group mt20">

    It is clear that the incorporation of the ARR is generating problems with the session, but I can not figure out how to solve it. From what I understand, multiple sessions are being generated and is slow to release / resolve them Session Id: yegprd55dygtuv45nt4ohg45 Requests: 21

    Thank you very much, I hope you can help me.


  • Re: Arr to IIS aspx app (ASP.NET Session ID)

    Jun 07, 2018 01:03 AM|deepakpanchal10|LINK

    Hi fben,

    If you don't use ARR then does your project work with out any error?

    Did you change any settings in ARR?

    Let us know about that, It can help us to narrow down the issue.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact
  • Rovastar Rovastar

    5482 Posts



    Re: Arr to IIS aspx app (ASP.NET Session ID)

    Jun 07, 2018 01:44 PM|Rovastar|LINK

    It sounds like the user is hitting one IIS machine getting a session id and then the next bit of traffic is hitting your other IIS machine where tgere is no record of the session id.

    To get around this you need them to share the same session id. Have a Google for state management in farm for

    For a quicker but less complete solution in ARR you can force the client to stay on one machine after the first hit.

    This is known as sticky sessions or session affinity.
    You can set the session affinity on your se4ver and you want the client affinity to do what you want.

    Hope that helps
    Troubleshoot IIS in style
  • Re: Arr to IIS aspx app (ASP.NET Session ID)

    Jun 07, 2018 04:23 PM|fben|LINK

    Hello tankssss!!!!!!
    hello is apparently a problem of the application because it is also given without arr through. it happens that with arr it becomes more visible since it is a client for the real server is always the same. I do not know how to solve it or how to show that something is wrong in the handling of the session. Do you think that using the helper of arr in each real server so that the ip is the client will work? thanks for your answer.
  • Re: Arr to IIS aspx app (ASP.NET Session ID)

    Jul 31, 2018 10:19 AM|Mr-Beens|LINK

    We have the same problem here and we found out IIS ARR caches dynamic content by default. It caches also a request to a resource (like a aspx page or a ashx handler) for users which didn't have a Session ID cookie already. The cookie is set by the response headers and that response is cached in IIS ARR for other users also. 

    Now, when a second user request the same resource it gets the cached one and its session cookie changes to the same one as user 1 already received.

    This link explains output caching and documents the available strategies to solve the problem. We are currently in testing stage to solve this issue.

  • Rovastar Rovastar

    5482 Posts



    Re: Arr to IIS aspx app (ASP.NET Session ID)

    Aug 01, 2018 07:36 AM|Rovastar|LINK

    I would have thought the ARR disc cache would be the thing you should look at. Output cache isn't really relevant (but I don't know your setup)

    And here explains a little more of some details of real world settings
    Troubleshoot IIS in style