NullReferenceException when running published website in IIS

后端 未结 2 1035
轮回少年
轮回少年 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.

提交回复
热议问题