We use TFS to msbuild our .NET 4 applications. (VS\TFS2010)
All worked well till compression was enabled on the output folder and we got an aspnet compiler crash.
Building directly from inside visual studio (devenv) still worked.
Also executing the aspnet_compiler command on a command prompt still worked.
But when building the solution from msbuild this error appeared.
Disabling compression resolved the problem....