ASPNETCOMPILER (0,0): ASPRUNTIME error: object reference not installed in object instance

I am trying to publish a website using Visual Studio 2013. I am getting an error:

ASPNETCOMPILER (0,0): ASPRUNTIME Error: The object reference is not installed in the object instance.

This also happens on Visual Studio 2010. I tried restarting VS and PC. I removed *.dll.refresh from my bin directory. I do not have <clear/> tags in my web.config. I think it all started when I accidentally deleted the * .suo file.

Any ideas?

Update:

I just noticed that this only happens when I try to recompile my site. If I publish without preliminary compilation, it works fine ...

+7
source share
6 answers

OK Having lost so many hours, I somehow got into this blog: http://thesoftwarepractice.net/development-things/object-reference-not-set-to-an-instance-of-an-object

Disabled McAfee real-time scanning and its operation ...

+8
source

I also had this problem, and it was not solved by any of the ideas mentioned above. The problem was that some compression was included in the subfolder of my drive containing the ASP.NET website. The solution is to right-click, select properties, and on the general tab, click "Advanced" and in the "Compress or Encrypt Attributes" section, make sure that "Compress content to save disk space" is not checked. After the request, do this for all files and subfolders (note that this may take some time). Hope this helps someone.

+7
source

I struggled with this problem for several hours and found this link from another site that worked for me: http://codecorner.galanter.net/2009/08/17/wdp-error-solution/

+1
source

Have you tried creating a new site by adding all the files from the old website to the new one and adding all the links used?

0
source

I also had this problem, and I fixed it by cleaning and reconfiguring all the dependencies and the project DLL.

0
source

Check the bin folder of the project you are compiling and delete some * .compiled

0
source

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


All Articles