What should you do?

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?

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 SQL Server 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.



Leave a Reply 0

Your email address will not be published. Required fields are marked *