"Save" errors in system log reporting as: ViewStateException: Invalid viewstate.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/13/2014 11:38:44 AM
Gravatar
Total Posts 83
-- Joe

"Save" errors in system log reporting as: ViewStateException: Invalid viewstate.

I am unsure how long this may have been occurring but on one of the nonprofit websites I volunteer with (Actorsingers.org) the Save for "Page Settings" throws this error.

    We're sorry but a server error has occurred while trying to process your request.

    The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

There are a few other areas (and probably more) that are not functioning - but no error shows and instead the user is returned to the home page:

  •  Trying to Download or Clear the System Log
  •  Save of the 'Login Page Content'
  •  Admin -> Add Edit Pages, then selecting 'Edit Page Settings"

NOTE: Editing the HTML content of a page IS working.

(System log below)

Resetting the Application Pool did not help.

The recent errors all seem to come from "mojoPortal.Web.Global - System.Web.UI.ViewStateException: Invalid viewstate."

Another frequent error seen after the viewstate error is "System.FormatException: Invalid length for a Base-64 char array or string."

Another less frequent error is: "The file '/les-misérables-.aspx' does not exist."  This was a theatre show they did last fall - and maybe another semi-admin tried to get fancy with the page name and that is causing the issue?  If so, which DB table(s) would have this info?  I can manually delete if needed.

Thanks in advance for any help with this!

System Information

    mojoPortal Version 2.3.9.7 MSSQL
    Operating System Microsoft Windows NT 6.1.7601 Service Pack 1
    ASP.NET Info v4.0.30319 Running in Full Trust

System Log (most recent)

    2014-02-13 10:34:35,916 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:35:29,095 ERROR 24.63.212.45 - en-US - / - mojoPortal.Web.Global -  Referrer(http://www.actorsingers.org/Admin/PageSettings.aspx?pageid=1) useragent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
    System.Web.UI.ViewStateException: Invalid viewstate.
        Client IP: 24.63.212.45
        Port: 0
        Referer: http://www.actorsingers.org/Admin/PageSettings.aspx?pageid=1
        Path: /Default.aspx
        User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
        ViewState: 20tGXbbO8vI0pBr30B/bqDZcF2VMzpidTsLaTkPC7I0xFOBYdilJ7JSf0drbeaUbZhDuOVM+3XSjla+myfUuZiPXh9wQNLZ8F2a22Wk7mzx6LyX/anuxloZ5EFLzD4dUKDRvuSGduV0mXonY9AQFrjSdnzPwa+pjmnX0v85XXAeHKG1GbY1QpjxvhBCzP1Y/xGDYaLNGgc9uIyOE6H8Gai97SRah5WYWK5vKuptg6F1cWrtUYPcPSMCFknqd+1j/Fhzr7yS4tuDCNA9oSpEfKvQrzUVy6GaWpWOpmZfty0hKP71t2mLrskIwvlWcJp20VRr72cEsWE5tp1Zgh4H+fVUTBUjzYLeooO1bUGPRJh2nJT0Mo8CuI+/RYP0AOIYOr/Rzk6RfBIkEgQOazcrNhD/pm+hy0wrG6JPwL+kdWCPSzCQZ4PHI/Q4YOH+cxJPndW5qw5C/kNjbHXtB5jCZDP7084JhYsouo8I+fc7Ild9GcNcJmI4O7pjaS1VQQA7jzDvoW3CC1dqumft8tYWkkdTGM4pU6PNecD22U+SjlU3R6WeUttuuOQGHffHyjnTJngU1M9tE6aOHPt+YRt/m1p2v/Lf348VDTWq5XwLINKEP9Co2vXW6o99UOb1ZlGJfJCKAtedNcdWaD2M04WLolBAF7N/bIFd9bajDyyMDOGfV3tue2N/fvb6eQJvwvlf4wqSv1O4Oo6E/Y2RlYaagRj7y6bHQjW7ttTdwWc5mGEjU6cRb/lhJ5tWFDAIrgQuLdE6iQK9euUMfWGcui7dnKR...
    2014-02-13 10:35:32,324 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:35:36,833 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:37:33,440 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:37:44,501 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:40:33,430 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:40:36,082 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:40:46,469 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:41:15,626 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:41:33,832 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:41:39,572 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:41:46,467 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:41:47,512 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:42:46,777 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:42:47,182 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:43:47,804 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:43:48,209 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:43:48,896 ERROR 24.63.212.45 - en-US - / - mojoPortal.Web.Global -  Referrer(http://actorsingers.org/Admin/PageSettings.aspx?pageid=698) useragent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36
    System.Web.UI.ViewStateException: Invalid viewstate.
        Client IP: 24.63.212.45
        Port: 0
        Referer: http://actorsingers.org/Admin/PageSettings.aspx?pageid=698
        Path: /Default.aspx
        User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36
        ViewState: ljJ1J9SVrpvqDioaPA6aZg89dlNbAeUrJYoFTyPeCsWnWPcrcZLSLcYfKDZ08O/I24er1ft7LR6lDODvfakmV8NoABkhT5wvn76n/aRIev8Zuw7gXtOlRcehDwpbil9kGhTgHtr19ZgDVfy0WZWMDrtI2/aSLapIRcBNJO1MyhX77PCAni9A39fyFSNrkQRiBtBvIbih5vuEQuRuL9t7OQLfe4LRrtB/YI7XH9/N7N6W1Gw+QaG6h2J4AAz8XUJi+pTJxLD5R3A58Qx8YEVkLbnfQ93UDKkSAhbGKVwXqvCXLYm3AN32Wq9Wy7qU6DXDi5gesPwMPCx0yQHB/ibTQV8fSIMxY5T/TUrKymxX7er2OIhw8WD080Yt59LgZl5qwavyxNF23PJTUvpI9hZQjbpvU51448QiEbWaZdRUEy3/WIT/0RCfPCOvQEy95wDCAZqf7g7avkjC/RB1cF5jgSsap/6W+HA89pLcMZuCp3TK4CbJiaZyxD+BM/tYHXpqCqndNpVl6MhWJ9CV1Dr8NHTO3zhVbBbFa9CqfyRW3X1IMEo9BAOel+gmHha4+eCD+tnuLg8BBqPHcxiHYz0Ejg89qIjirfTim79R947PyGzfIl6tQmUtED4jsFbara1vdsO0aPf/+PyRtg/FgZcl4Gei3fMOfC8gVOwWFIFndHVAhghvWUQ7zQ2MDYRJnS18TMf9DK32UyOGXB1BEX1fSFGCL2qg08WvbGAM3gZowF8AIopzc7Dh...
    2014-02-13 10:44:33,837 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:44:46,847 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:45:57,611 ERROR 31.31.72.22 - en-US - /les-misérables-.aspx - mojoPortal.Web.PageNotFoundHttpModule - Referrer(none)  PageNotFoundHttpModule handled error.
    System.Web.HttpException (0x80004005): The file '/les-misérables-.aspx' does not exist.
       at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
       at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
       at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
       at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    2014-02-13 10:46:28,961 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:46:30,184 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:46:31,036 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:46:31,302 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:46:35,842 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:47:09,621 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:47:27,664 ERROR 24.63.212.45 - en-US - / - mojoPortal.Web.Global -  Referrer(http://www.actorsingers.org/Admin/PageSettings.aspx?pageid=698) useragent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
    System.Web.UI.ViewStateException: Invalid viewstate.
        Client IP: 24.63.212.45
        Port: 0
        Referer: http://www.actorsingers.org/Admin/PageSettings.aspx?pageid=698
        Path: /Default.aspx
        User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
        ViewState: eLNCtpOJs6NLRPSw1mC5wXdR+AFKr0Zvbunm7rvW/AT8TUVsGJ7YsTwOLOksTSxKpBvYCz3yvVG1h/FQZd8EjfCUrVLoUXoU0PSsAklEyP2VGnjsy4VK4Yxk7s7PNUyRxqO8Pm1w9T0lgFauAP/VsUmlax5qirRtRid5vMabEPkpZA/w3/e8C/224sIuFSZslq551yFL8Alihc+pAr/bPyj72pgk+NHj3mfIXbK98wCX7xz7kGZGYgYv8uztfuLLZw/1BhdZjJe6JjHSokzaf9FL2xpt7jGCbd/OhCwjMBHIVPytxT7bOpuP0SJ1cJ9I8l4psehJmWgBAAwNJqRvz4/cJpq2J9K3KvYVgNQwDgcv6lVtVMFQkejdibQlONJk8BwtXzXSZzvkEurDRp9ApytA/Z22UQjE2Ws4on8+1A3IcUHw+Z9y9Osr5U74ulX+9aOJzVRMzgtwhbfLcmzLTwdjdP0AcXHIa+j536eiCsfdgag3p/KIY5SQgDjElWMqVpgUUXg3O6QYycJsATP0Fk8qWq+DMmrE5sNA+kwOF0DNTpL4XixguzLc3K9i1qtmp3KyvV9YsxoMhhFXe26mcNAYpit5xwdY6JZqnRtjrlbTB55AyHgm+7Mfhhd39RAwjOHeROyAIhcbLkF40uWtuYFfXodDG0Ls60g+3XJka/t7mWgZRUBoM6tIRUGMne1Z77TwJBd9HQBrBYNgT8YHDUdinBYs7TZtyNQMfSALCLk9DGd0GZDfR88VBqzZuvlSZSkMrKR+7kxDAN7Uxtye...
    2014-02-13 10:47:31,243 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:48:32,465 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:48:36,287 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:48:46,466 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:51:32,579 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:51:39,740 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:53:24,180 ERROR 31.31.72.22 - en-US - /article-about-our-upcoming-production-of-les-misérables.aspx - mojoPortal.Web.PageNotFoundHttpModule - Referrer(none)  PageNotFoundHttpModule handled error.
    System.Web.HttpException (0x80004005): The file '/article-about-our-upcoming-production-of-les-misérables.aspx' does not exist.
       at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
       at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
       at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
       at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    2014-02-13 10:53:32,713 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 10:53:38,219 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 10:58:13,632 ERROR 192.187.115.90 - en-US - /les-misérables-.aspx - mojoPortal.Web.PageNotFoundHttpModule - Referrer(none)  PageNotFoundHttpModule handled error.
    System.Web.HttpException (0x80004005): The file '/les-misérables-.aspx' does not exist.
       at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
       at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
       at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
       at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    2014-02-13 10:58:45,994 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:00:33,000 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:00:36,067 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:00:36,317 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:00:46,338 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:01:29,793 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:01:33,059 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:01:45,944 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:01:57,202 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:02:33,274 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:02:45,629 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:03:32,487 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
    2014-02-13 11:03:32,502 INFO 24.63.212.45 - en-US - /HtmlEdit.aspx?mid=781&pageid=720 - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
    2014-02-13 11:03:32,627 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task
    2014-02-13 11:03:32,643 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread
    2014-02-13 11:04:24,933 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - started IndexWriterTask task
    2014-02-13 11:04:28,599 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:05:26,194 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:05:26,444 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
    2014-02-13 11:05:26,444 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
    2014-02-13 11:05:41,560 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - started WebTaskManager task
    2014-02-13 11:06:04,648 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
    2014-02-13 11:06:04,648 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
    2014-02-13 11:06:04,773 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task
    2014-02-13 11:06:04,773 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread
    2014-02-13 11:06:55,847 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - started IndexWriterTask task
    2014-02-13 11:07:04,848 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - started WebTaskManager task
    2014-02-13 11:07:28,622 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:07:31,165 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:08:29,399 ERROR 24.63.212.45 - en-US - / - mojoPortal.Web.Global -  Referrer(http://actorsingers.org/Admin/PageSettings.aspx?pageid=702) useragent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
    System.Web.UI.ViewStateException: Invalid viewstate.
        Client IP: 24.63.212.45
        Port: 0
        Referer: http://actorsingers.org/Admin/PageSettings.aspx?pageid=702
        Path: /Default.aspx
        User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
        ViewState: ui05WnHS3fb5IIKypeD2amPjHLwi2tiyIu+iJKO6fuZ3Vvr0q0QQz/X0IuKgfSVmsHOHbfIhBTw/tX7+cEaMPGBZONxvuUsQRvc6OV3alN/a+nVBs2VQyg9sxqiICTrRaZrHBaRth39lUYzIdEZ2+U8dBdl89Oj4NlA35+xhK/c6pjPT7ZRuOZaUZSB94ncGO5K19P3ZuO238H230KKaG9NAiGuAEMbqZtwTDV/d46pH54q/GeHhxIVJtslUO/pdI84r4aJGaFYosMSQkRreM5MisESL8fGOLDCkRt+oUznTZstmcsmxuEDbgLA3xrwABmKOV0OMHlRjRtdiqlxyrBoxJ5ShgUAXpBlZQRZ1bHhdgIZ7/XbAUjFwO+G1LGI5ZPlHbrw5vpCIvyQtKAd6lzWxzJuj5hTIXaM85yempP+WiS0x5JK0LW+p9lG6guGCNLXeAFi2PzLx4vGVEgYK9GUPM1qiolOhwXGDMRgr8rH/nmMnZBspgmjqVeSdC6xzrujFcLKSB5vtZvmeHSukgeIaHF2ArTAlJM7aESoiE2bAoqEjSfQxsEX/EAu4cF6Hylz942Q7e+0Dd/7nmqnSSyb2HDeM9XtDpFl2OzEgTIhfYn3GFTnFcBZVU/y1qa7a3p7DnW6iOqOM9rplWOif/goBZCgp0Sdf2CdiM99oDU9oFf9ljJ3gDcOZ1aSoSW0J/DoGvfSKyjfoF55hsx1RFmT7eVo6ImazlWhMH+JYHCR1Wg/FQUFkQr26+i12vD4LdqmHFK5vnicO4cKaaYEZ/x+q...
    2014-02-13 11:13:29,869 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:13:33,295 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:13:46,093 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:13:46,023 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.
    2014-02-13 11:17:28,797 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
    2014-02-13 11:17:38,875 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.

2/13/2014 12:00:09 PM
Gravatar
Total Posts 18439

Re: "Save" errors in system log reporting as: ViewStateException: Invalid viewstate.

Hi Joe,

Viewstate errors can happen for a number of reasons, in fact they are the most common errors you will see in your log because there are tons of bots that will generate them on your site by manipulating the hidden viewstate fields. They do this trying to detect an old vulnerability in asp.net that has long since been patched.

Aside from that viewstate errors can happen if

  • a user clicks a button that does postback before the page has completely loaded
  • if you load a page with one skin and then while you have that page in your browser someone changes the skin on the page to a different skin, then when you click to postback the state of the page does not match the server and viewstate errors can manifest that way
  • there could be something skin specific causing viewstate errors if there may be javascript that changes the markup sufficiently before postback
  • a web server that does not have all the windows updates installed may result in viewstate errors because the browser definition files are outdated and don't recognize the latest browsers, IE 10 and 11 for example cause such errors on unpatched machines.

I don't see any errors in what you posted that correspond to saving the login page content or anything related to the log nor related to pagesettings.aspx. Usually problems with the log are caused by file system permissions but errors could happen based on timing if you try to clear the log while its also writing to the log, logging to the database is a little more robust but you cannot download the log from the database, you can only clear it or view it.

If those errors happened consistently then you should try to find them in the log right after they happen or else use the windows application log which should also show any unhandled exceptions.

Hope that helps,

Joe

2/13/2014 12:07:59 PM
Gravatar
Total Posts 18439

Re: "Save" errors in system log reporting as: ViewStateException: Invalid viewstate.

I think you edited your post to add more errors.

Since it is the same error on several pages I would try using a different skin to see if it still happens in order to rule out a skin specific problem. I would also try to narrow the problem down as to which web browsers you can produce it in or not, and as mentioned make sure all windows updates are installed.

It is strange that this problem started happening since it was not happening before so it seems likely either related to new web browser or some change on the site or server.

2/13/2014 12:17:10 PM
Gravatar
Total Posts 83
-- Joe

Re: "Save" errors in system log reporting as: ViewStateException: Invalid viewstate.

Joe,

Thanks for the really quick response.  FYI - my edits were grammar related <embarrassed>

As the IP address that is generating the errors is my own (Comcast 24.63.212.45), and the errors only get recorded right after I try a save (low volume site) I am guessing the issue is a not bot.  Also the skin hasnt changed in months (all was working in November)

    System.Web.UI.ViewStateException: Invalid viewstate.
        Client IP: 24.63.212.45
        Port: 0
        Referer: http://actorsingers.org/Admin/PageSettings.aspx?pageid=702

I've tried IE 10, Firefox and Chrome - all are tripping the same error on page settings save.

My next step is to download the DB locally and get it all running on my local IIS.... but you have any other suggestions I am open to knowing them!

Thanks again -- Joe V.

2/13/2014 1:19:35 PM
Gravatar
Total Posts 83
-- Joe

Re: "Save" errors in system log reporting as: ViewStateException: Invalid viewstate.

Joe,

As usual you were correct.  The issue is in the skin.  I havent found the root cause yet but Im working on it.

Thanks again for your time!

-- Joe V.

2/13/2014 1:27:30 PM
Gravatar
Total Posts 18439

Re: "Save" errors in system log reporting as: ViewStateException: Invalid viewstate.

something like an extra form tag or a missing or extra closing tag are the kind of things I would look for first. use the w3c validator as a first step since it can tell you about missing tags or improper nesting of elements.

You must sign in to post in the forums. This thread is closed to new posts.