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

后端 未结 10 1529
遥遥无期
遥遥无期 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:41

    I have recently encountered this Error. As @samiz mentioned above, First of all, you need to delete all *.dll.Refresh after that build and publish your website. However, sometimes, as happen for me, when you have deleted *.dll.refresh, then publish your website, Error reminds as usual. I have done a lot of tests, but nothing changes.

    I also create a new folder and copy all *.dlls which I need for my website. Next, delete all *.dll inside Bin folder then add them by one.

    Finally, I re-start My PC, and then I try to publish my website. Believe me or not, it works fine and no error occurred.

提交回复
热议问题