.Net page: no answers to questions about the body part of the answer

I am experiencing an intermittent error.

We have a page that, when viewing the source in the client browser, returns ~ 5800 lines of javascript and html markup.

However, intermittently, there is no random part of the response body. For example, we can get 5600-5700 lines instead of 5800 which we expect.

This causes a lot of errors, depending on which lines are cut. The number of missing lines and the position of the lines are random.

So far, I'm still at the research stage, trying to figure out what happens first. We have not yet tried to solve the problem.

I set breakpoints in OnPreRender, Render and OnUnload. The debugger hit all three breakpoints without any exception. The debugger was configured to pause execution with any exception, processing, or unhandled.

Any ideas on what might cause this behavior?

An example of one of the cut off answers:

this.message = "Please enter yo ="checked" /><label for="rememberMe">Keep me signed in</label> 

So, as you can see, there is a random fragment of the answer that is missing between where we did javascript and where we had some kind of markup.

Update / Fix For some strange reason, enabling compression in IIS fixes the problem. But that still doesn't make much sense, and I'm still very curious about what caused the problem and why compression should fix it.

+4
source share
1 answer

For some strange reason, enabling compression in IIS fixes the problem. But that still doesn't make much sense, and I'm still very curious about what caused the problem and why compression should fix it.

+1
source

Source: https://habr.com/ru/post/1437878/


All Articles