Build error is occurring since using Visual Studio 2015. When building in Visual Studio 2015 this is occurring rarely. When building in TeamCity this occurs very often.
I just had the same problem. In Visual Studio 2015, I fixed it using the following steps:
+1 to @stukselbax for getting me on the right track Also got help from this link