Skip to main content



How to resolve: 'ASPNETCOMPILER: Object reference not set to an instance of an object'

At my current engagement I have setup a build process.  As per my normal, I always make sure that a build script can be run from anywhere.  In principle I strife to have the build script do everything needed to get a developer working a.s.a.p.

The end result should be that you download the code, run the build script, start developing.  And on the build server, download the code, run the build script, provide the deployment artifacts.

The current build script has been running on the build server (TFS 2013 Controller) for about 6 months now without any major issues.  Until yesterday that is, when it suddenly started failing with 'ASPNETCOMPILER: Object reference not set to an instance of an object'.

There seems to be multiple issues that can cause this problem, anti-virus applications, left over build files in bin folders, compressed working folder...

In my case it was the temp folder of the local user account we use for the build service, which was in C:\Users\<username>\…

Latest posts

Resolving TS5023:Build:Unknown compiler option

RestrictedCaptionAreaChangedEventArgs could not be resolved

Where to find Reactive Extensions 2.2.5

Check if Google Play Services are availble in Xamarin

Android.Content.ActivityNotFoundException: No Activity found to handle Intent


Debug Android applications over Wi-Fi

java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe'

The specified solution configuration “Debug|X64” is invalid

TFS: Undo checkout of unmodified files