viewstate的时效好像是有asp.net state server服务控制的。
你看看你的服务里面该服务是不是停止了?

解决方案 »

  1.   

    据说ViewState是用hidden元素来保存的,所以不存在时效的问题。
      

  2.   

    同意icyer() 的观点,我在我的项目中用了很多的ViewState也没出现你所说的问题,找找其它的原因吧!
      

  3.   

    我没有添加任何viewstate,都是系统自己加的,另外我的系统是.net server
    是不是和这有关?
      

  4.   

    这次更详细,请哪位帮忙看看是什么原因?
    The View State is invalid for this page and might be corrupted. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The View State is invalid for this page and might be corrupted.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: 
    [HttpException (0x80004005): The View State is invalid for this page and might be corrupted.]
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +151
       System.Web.UI.Page.LoadPageViewState() +16
       System.Web.UI.Page.ProcessRequestMain() +421 
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.24
      

  5.   

    asp.net state server服务默认是stop,是手工的,我启动它并设为auto,但好像这种情况还是存在,谁能帮帮我?
      

  6.   

    怎么设置asp.net state server?
      

  7.   

    就在"服务"中.
    另外View State 已解决只要写
    <%@ Page EnableViewStateMac="false"%>