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

后端 未结 5 1018
灰色年华
灰色年华 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: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.

提交回复
热议问题