New SqlConnection() Hangs When IIS Express Has Been Idle

About a week ago I was happily working away on an ASP.NET Web API project when I noticed something fishy happening. And by “fishy”, I mean incredibly, unbelievably, stupendously frustrating. When initially loaded, the application worked fine. Start the project, execute a command from Postman, get results. But after running for 8 or 10 minutes, results would suddenly stop coming back. It didn’t take long to figure out where it was failing, however why it was failing was another matter entirely....

April 11, 2016 · 2 min · Nick Spreitzer