I am wondering today.
In my project ajax not making asynchronous call. request is sending one after another.
while processing one request, rest other all requests putting in pending.
this happening from last night.
I am wondering today.
In my project ajax not making asynchronous call. request is sending one after another.
while processing one request, rest other all requests putting in pending.
this happening from last night.
It is not relevant how is applying Ajax calls. It is mostly relevant with ASP.NET is managing session. Here is the official documentation.
Concurrent Requests and Session State
Access to ASP.NET session state is exclusive per session, which means that if two different users make concurrent requests, access to each separate session is granted concurrently. However, if two concurrent requests are made for the same session (by using the same SessionID value), the first request gets exclusive access to the session information. The second request executes only after the first request is finished.
As you see, if two concurrent requests are made for the same session (so in your case it is) the second one applying after the first request is responsed.
EDIT
If you don't want that behaviour, you can decorate your controller with SessionStateAttribute
and disable to access the session.
[SessionState(SessionStateBehavior.Disabled)]
If you want to only read access to the session, you can add the attribute like this.
[SessionState(SessionStateBehavior.ReadOnly)]