1

Topic: ASP.NET MVC 5, for ajax request

Good afternoon.
I use IIS8, application ASP.NET MVC 5. On one of application pages there is a form with a dial-up of input parameters (a range of dates and some more insignificant). The form is processed ajax th. At request performance some data set in json on which base is drawn out the schedule on the client is under construction. The situation is that that at a certain dial-up of the input data (at broad range of dates, for some years) the request can be fulfilled long enough. It is experimentally installed that there is a cut-off in 30 seconds. If the request is fulfilled more than 30 seconds ajax completed by an error if it is less all fulfills correctly. Parameter usage timeout for $.ajax (...) In client js a script in any way this problem does not influence. The problem is connected to the server. And on a local host under IIS Express all is normal. The request falls off only on worker IIS. Very similar situation is described here . But judging by the comment it is ostensibly decided by parameter timeout in a client script that does not help in practice. I think, somewhere there is an appropriate adjustment for web servers but while anything similar did not find. Prompt, someone can faced a similar problem? How it is possible to increase it ?

2

Re: ASP.NET MVC 5, for ajax request

Oleg5555;
It is possible certainly and to increase . But it does not solve a problem. Break the data into portions (paging) and transfer gradually units. If can  the schedule, it will be correct from the point of view of UX result. In general, not aside  look, consider it to you helps to make all correctly.

3

Re: ASP.NET MVC 5, for ajax request

I understand it, a question of splitting of the data, optimization of handling of this dial-up this direction for speculation. But nevertheless it would be desirable to learn that it for adjustment.

4

Re: ASP.NET MVC 5, for ajax request

Oleg5555;
And even Google did not search for type?
[img=https://i.stack.imgur.com/EkAnG.png]
Where that tried parameters?

5

Re: ASP.NET MVC 5, for ajax request

Session state adjustments should not be connected to this problem. The only thing for what it would be possible to be hooked is a mode of session state a SQL server with parameter  30 seconds (something similar, at least on value of parameter). But this adjustment is used for the objects stored in session state (which should be ) at level SQL. Tried to change for experiment this adjustment, did not help. Business in something the friend.

6

Re: ASP.NET MVC 5, for ajax request

Oleg5555 wrote:

I understand It, a question of splitting of the data, optimization of handling of this dial-up this direction for speculation. But nevertheless it would be desirable to learn that it for adjustment.

Then the error text lay out.

7

Re: ASP.NET MVC 5, for ajax request

Tex of an error standard - "performance Wait time effused. Wait time effused before operation end, or the server does not answer."

8

Re: ASP.NET MVC 5, for ajax request

One addition. I it was mistaken in the initial description of a problem, under IIS Express too most.

9

Re: ASP.NET MVC 5, for ajax request

All thanks. Found the problem primary source. The exception was generated not at level IIS, and at access level to the data, at level ADO.NET. 30 seconds this restriction by default executions sql commands. It is possible to increase this parameter in the code, the problem is described here and docks here . Tried to lift experimentally value of parameter, all worked. Over architecture and optimization I will think still.

10

Re: ASP.NET MVC 5, for ajax request

Oleg5555 wrote:

Tex of an error standard - "performance Wait time effused. Wait time effused before operation end, or the server does not answer."

And type: System. Data. SqlClient. SqlException. But day was necessary to understand. Surprisingly:-Q

11

Re: ASP.NET MVC 5, for ajax request

Oleg5555 wrote:

Over architecture and optimization I will think still.

What here to think? The request plan it is necessary to look.

12

Re: ASP.NET MVC 5, for ajax request

Once again all thanks for comments, surprise and "help". The subject is closed.

13

Re: ASP.NET MVC 5, for ajax request

14

Re: ASP.NET MVC 5, for ajax request

Oleg5555 wrote:

and "help"

Here I would wish, that separate patients who come to us on interviews, rendered at least here such help.
But that really surprises, it here such silly and at all to a place, irony. As though to you here all have been obliged, and did not please.

15

Re: ASP.NET MVC 5, for ajax request

skyANA wrote:

it is passed...
What here to think? The request plan it is necessary to look.

If really it is a lot of data, the plan especially does not help.
I would unload in the portions the data on the client (if at it certainly storages suffices) and then formed resultant .

16

Re: ASP.NET MVC 5, for ajax request

big-duke wrote:

I would unload in the portions the data on the client (if at it certainly storages suffices) and then formed resultant .

Even  while are loaded display the image with detailing increase.
Well as it is possible not to understand today that it is necessary to load and give the data in the portions.

17

Re: ASP.NET MVC 5, for ajax request

hVostt;
, it is sensible, I will drag off to myself idea about detailing .
Thanks.

18

Re: ASP.NET MVC 5, for ajax request

big-duke wrote:

If really it is a lot of data, the plan especially does not help.

Well well... And how the schedule at the Hardware is under construction?:-Q