I just discovered why all ASP.Net websites are slow, and I am trying to work out what to do about it

前端 未结 10 759
情话喂你
情话喂你 2020-11-22 07:53

I just discovered that every request in an ASP.Net web application gets a Session lock at the beginning of a request, and then releases it at the end of the request!

10条回答
  •  孤独总比滥情好
    2020-11-22 08:29

    Just to help anyone with this problem (locking requests when executing another one from the same session)...

    Today I started to solve this issue and, after some hours of research, I solved it by removing the Session_Start method (even if empty) from the Global.asax file.

    This works in all projects I've tested.

提交回复
热议问题