ASPNETCOMPILER(0,0): Error ASPRUNTIME: Object reference not set to an instance of an object

后端 未结 5 1013
灰色年华
灰色年华 2020-12-17 23:00

I\'m Trying to publish a website, using Visual Studio 2013. I\'m getting an error:

ASPNETCOMPILER(0,0): Error ASPRUNTIME: Object reference not set to

相关标签:
5条回答
  • 2020-12-17 23:30

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

    Turned off the McAfee Real Time Scanning and its works...

    0 讨论(0)
  • 2020-12-17 23:45

    This is a hard to catch issues, which usually comes with webforms aspx pages.

    If you are deploying the app with pre-compiled option and you have selected the "Do not merge, create a separate assembly for each page and control" here:

    then you need to make sure that there are no compiled assemblies for any of the aspx pages in the bin folder of the project you are trying to compile. Go to your bin folder and delete any assemblies related to your web pages and try publishing again. This will fix this issue.

    0 讨论(0)
  • 2020-12-17 23:46

    I also had this problem and it was not solved by any of the ideas mentioned previously. The problem was that somehow compresssion had been enabled on the subfolder of my drive containing the ASP.NET website. The solution is to right-click, choose properties and in the general tab, click Advanced and under the 'Compress or Encrypt attributes' section, make sure 'Compress contents to save disk space' is unchecked. Upon prompting do this for all files and subfolders (note it may take some time). Hope this helps someone.

    0 讨论(0)
  • 2020-12-17 23:49

    Have you tried creating a new website, adding all the files from old website to the new one and adding all the references used?

    0 讨论(0)
  • 2020-12-17 23:49

    I also had this issue, and I fixed it by clearing and re-configuring all the dependencies and the dll's of the project.

    0 讨论(0)
提交回复
热议问题