Kentico Cloud Delivery .Net SDK Quick Tip: Synchronous Call

While working on a few different Kentico Cloud based projects, I ran into a situation that was a real head scratcher when working with the Delivery .Net SDK. I had done the research, installed the fabulous Kentico Cloud Boilerplate for ASP.NET, followed the getting started examples to a T, and for the most part everything worked perfectly. However, every once in a while the whole application came to a screeching halt, with a deep level exception being thrown the very first time I ran the project. Hitting refresh always fixed the error, but the whole situation really made no sense to me at first.

I know what you must be thinking, "Well Brian, it's probably just a caching issue if it works on a refresh". Trust me, I wish it was that, but it isn't. Keep reading after the jump to hear the whole story and see how I resolved the issue using an unexpected technique.

Read more »