publishing asp.net website give “Object reference not set to an instance of an object.” error

后端 未结 10 1594
遥遥无期
遥遥无期 2021-02-15 05:24

I am getting fed up with this error. I have search all over the web and tried every possible suggestion to this error I could find.

  1. delete app_code, build, add fil
10条回答
  •  自闭症患者
    2021-02-15 05:44

    I had a similar issue. The application would build and run in the IDE, but fail to publish; conking out at the 'merge dll into single assembly' stage. After researching aspnet_merge.exe I found that the issue was resolved by unchecking the 'emit debug information' checkbox in the publish options.

    It may not be a 'clean' fix for the issue, but it's a workaround.

    Hope this helps.

    Andrew

提交回复
热议问题