试题详情
单项选择题You are troubleshooting an ASP.NET Web application. System administrators have recently expanded your web farm from one to two servers. Users are periodically reporting an error message about invalid view state. You need to fix the problem. What should you do?()

A、Set viewStateEncryptionMode to Auto in web.config on both servers.

B、Set the machineKey in machine.config to the same value on both servers.

C、Change the session state mode to SQLServer on both servers and ensure both servers use the same connection string.

D、Override the SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium methods in the page base class to serialize the view state to a local web server file.

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题