ASPNETCOMPILER : error ASPRUNTIME: Target Directory not empty

tsps picture tsps · Sep 29, 2010 · Viewed 11.7k times · Source

I have a web application that needs to be built using a nant script. All the projects in the solution build fine but for this error that crops up each time at the end of the build. I couldn't find much useful information on resolving this error. Has anyone encountered and fixed this kind of issue before? Any help would be much appreciated.

[exec] ASPNETCOMPILER : error ASPRUNTIME: The target directory is not empty, and does not appear to contain a previously compiled application. Please delete it manually, or choose a different target. [C:\SRC\BorgWorld\trunk\apps\Zombies.metaproj]

Answer

Adrian picture Adrian · Dec 12, 2011

Delete the temporary website folder from

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\