ERR_CONNECTION_RESET in MVC 3 Web App

1.7k Views Asked by At

I'm getting a connection reset error in my ASP.NET MVC3 app. It seems to work on http, except that redirects to https which doesn't work. I have tried fiddling with the timeout values as in asp.net mvc 3 - form post - ERR_CONNECTION_RESET, but to no avail. Has anyone seen and dealt with this sort of error before?

2

There are 2 best solutions below

0
On BEST ANSWER

Found it. I needed to re-create my SSL development self-signed certificate. It expired not too long ago.

0
On

I had a problem where I was storing and retrieving binary data in / from my database, then upon a request for image data specifically, I was setting the Content-Length header variable to a size bigger than the requested image reflected (doh!), so the browser was expecting more bytes. After two minutes or so it would throw the ERR_CONNECTION_RESET exception and clear the image. I simply removed the header variable and I'm golden.