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>\AppData\Local\Temp\
This folder was compressed, after decompressing it, the builds started working again.
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>\AppData\Local\Temp\
This folder was compressed, after decompressing it, the builds started working again.
Comments