Tip: Scroll Solution Explorer to current file in Visual Studio 2012, 2013 and 2015

Visual Studio settings

I always want the Visual Studio Solution Explorer to show me the context where I work at – kind of follow me around while I jump from file to file. This behavior is built-in, but off by default, and also probably disabled after installing some new extensions. Here’s how you can re-enable it:

Tools -> Options -> Projects and Solutions -> “Track Active Item in Solution Explorer”

Solving Azure Web Application’s first load perfomance issues

Microsoft Azure logo

Is your Azure Web Application suffering from absolutely horrible load times every time someone access it for the first time every 15 minutes or so? Mine was.

I was developing a web-based service using EF6 and ASP.NET MVC 5, where all the assets were hosted in the Azure. Even though the app was reasonably lightweight and usually responded very fast, the first time someone accessed it in a while it took 20-60 seconds to load AND sometimes even timeouted (especially with mobile clients). Load testing revealed only the what I already knew: initial load times were horrendous, but after that everything worked fine. I did eventually find the solution, though!

Continue reading