|
January,2010 (3)
|
|
December,2009 (1)
|
|
November,2009 (3)
|
|
October,2009 (1)
|
|
September,2009 (1)
|
|
August,2009 (1)
|
|
July,2009 (4)
|
|
April,2009 (4)
|
|
March,2009 (1)
|
|
February,2009 (4)
|
|
December,2008 (1)
|
|
November,2008 (1)
|
|
September,2008 (1)
|
|
August,2008 (1)
|
|
June,2008 (3)
|
|
May,2008 (1)
|
|
April,2008 (5)
|
|
March,2008 (1)
|
|
February,2008 (1)
|
|
January,2008 (9)
|
|
November,2007 (1)
|
|
April,2006 (2)
|
|
Show All
|
|
|
|
|
|
Invalid Viewstate Exception
-
20.04.2009
|
|
It is certain that you have recieved "System.Web.HttpException: The client disconnected. ---> System.Web.UI.ViewStateException: Invalid viewstate" message if you are logging exceptions in a web application. There are lots of reasons of this problem. These reasons may be the difference in machine key configuration of applications that are running in a web farm, Firewall or antivirus softwares that running on web server or trimming of hidden viewstate field at client's proxy server or firewall. However there are no possible solutions that can be made by developer for the first two reasons, there is a solution for the last reason. In web.config file at the pages element of System.Web node you can set maxPageStateFieldLength property to 512 or another value by typing maxPageStateFieldLength="512". This change made to web.config file will cause the application split viewstate field to strings that maximum 512 character length. I had significant decrease at the number of Invalid Viewstate errors.
|
|
Clues,Codes
|
|
|
|
|
|
|
|
|