Michael
Michael

Reputation: 1605

.Net Page Responds with Portion of the Response Body Missing

I'm experiencing an intermittent error.

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

However, intermittently, a random portion of the response body is missing. For instance we might get 5600-5700 lines instead of the 5800 that we are expecting.

This causes a variety of errors, depending on which lines get cut off. The number of missing lines and the position of the lines is random.

So far I am still in the research phase of just trying to figure out what is happening in the first place. We haven't tried anything yet to fix the problem.

I have placed breakpoints at OnPreRender, Render, and OnUnload. The debugger hit all three breakpoints without any exceptions being thrown. The debugger was set to pause execution upon any exception, handled or unhandled.

Any ideas of what could cause this behavior?

An example of one of the cut off responses:

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

So as you can see there is a random chunk of the response missing between where we were doing some javascript and where we had some markup.

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

Upvotes: 4

Views: 206

Answers (1)

Michael
Michael

Reputation: 1605

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

Upvotes: 1

Related Questions