NullReferenceException when running published website in IIS

好久不见. 提交于 2019-12-02 11:25:33
Andrew Keith

That exception is caused by an object not being instantiated. Open the project and attach a debugger to the IIS process. A web service which is consuming the ASP.NET page is throwing the exception.

Denien

Try this:

  1. Click your site in IIS
  2. Open Pages and Controls section
  3. Find ViewState group and check if ViewState is enabled.

Such solution helped me to solve null reference exception problem after publish.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!