Error building site using msbuild - ASPNETCOMPILER: ASPRUNTIME error: link to the object is not installed in the object instance

I am trying to create our web project using msbuild.exe in .NET 4.0.30319 when I get the following error:

ASPNETCOMPILER: ASPRUNTIME error: the object reference is not set to the object instance.

This project is being built well, about a month ago, when we tried to build after a long period of inactivity. I tried the following:

  • Removing ASP.NET Temporary Areas within Framework and Framework64

  • Deleting all *. Copied files that can be pulled out

  • Web Deployment Project Recovery in

All of these solutions seem to fail in this case. The strange thing for me is that when I check the logs and run the standalone aspnet_compiler (and not through msbuild), I don't get an error, ASPs are simply compiled to the designated deployment.

Any suggestions on further steps are welcome.

+6
source share
2 answers

If the problem was saved in the Dropbox folder

0
source

Yes, the problem is in the Dropbox folder. We moved the project outside of Dropbox and everything worked fine

0
source

Source: https://habr.com/ru/post/976155/


All Articles