NullReferenceException when running published website in IIS

后端 未结 2 1015
轮回少年
轮回少年 2021-01-25 22:01

I have a website that I published before adding it in IIS. After that I set the published website as the default website in IIS.

I got an error that the \"Object referen

相关标签:
2条回答
  • 2021-01-25 22:48

    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.

    0 讨论(0)
  • 2021-01-25 22:59

    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.

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