Getting random/intermittent 503 errors on the local IIS website

503-erroriis-7

I've set up an ASP.NET MVC website in my local IIS 7 server.

It was working fine for a while, but suddenly it seems to be returning 503 errors at random intervals, for random requests.

If I browse to it in my web-browser, I'll sometimes get a 503, but times, the page will load, but resources referenced by the page, such as various images, stylesheets and scripts, will fail to load.

Which particular files load or don't load seems to be 100% random and arbitrary. I'm unable to detect any pattern at all.

It literally seems to reject requests whenever it feels like it.

I realize the information here is a bit scant, but can anyone give me an indication of what might be wrong?

(The only unusual thing which I did after setting up the website was to swap the port number on the binding of my website with the port number on the binding of the 'Default' website.)

Best Answer

Turns out that somehow my 'Connection Limit' setting had been set to 1.

Fixed this by opening IIS Manager, selecting the website, clicking 'Advanced Settings' (in the sidebar), expanding 'Connection Limits' and changing 'Maximum Concurrent Connections' to 10.