Bug Report T472559
Visible to All Users

Web - The ViewStateException occurs when using Chrome's Duplicate tab functionality under certain circumstances

created 8 years ago

Hi Guys!

I am testing the new mutlitab browser feature. But if you select the option (in Chrome) for duplicate tab (right click) the xaf app is chrashing.
Please watch the videos for more information

https://www.screencast.com/t/hJznwBXYRSj

This is the log:

C#
Application Error We apologize, but an error occurred and your request could not be completed. You could go back and try again or restart the application. Error details Hide Error details Error ID: 48879641-514d-497a-8c93-2390236bfea4 Date: 1/16/2017 1:55:25 PM Request details: Url: http://localhost:62337/default.aspx Url referrer: http://localhost:62337/default.aspx SessionID: dwm5j0o3br4sbvxkr1asirng Request type: POST User agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 User IP: ::1 User: dzuniga.lb Authenticated user: [no name] ================================================================================ The error occurred: Type: HttpException Message: The state information is invalid for this page and might be corrupted. Data: 1 entries 'ASPIMPERSONATING' '' Stack trace: at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ClientScriptManager.EnsureEventValidationFieldLoaded() at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) at System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) at System.Web.UI.WebControls.HiddenField.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.WebControls.HiddenField.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Users\Douglas\AppData\Local\Temp\Temporary ASP.NET Files\root\2c96f782\8aa75ef8\App_Web_vezgd2nm.2.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ---------------- InnerException: Type: ViewStateException Message: Invalid viewstate. Client IP: ::1 Port: 51363 Referer: http://localhost:62337/default.aspx Path: /default.aspx User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 ViewState: /wEdACtki3q7uo5QVXwTY2FLCOUSA13H7tpw0uoUb/30c+Ig+rE/Jx6J3YqyUEKQ7Xyq56a3xn2mZ1oD42t9/rKoE/flh74WY58D/XmtNCuSo1QhtytSNoKfypIL1Zc2wzgMx8vBO5FnNrmOwIo5mjkqB8ink1PQfc8zH2c2pltYJg+CGxTWnxfztpvTEF+Tb+yWPbNC7cIiAN8L10UoDZeNcwaC0B+/j/dlra0Wtqs4nLjZdO7NujUp6CN0e5AUu4+RNDesDhUCvJfOJ+hGDhsjJqkw71rFJqNTK1jDd7xs9TArY9bneihbRaonEOpY5GHUuN7eEMcflb4wKITbdvR4WVWxRkPgEYsyqLYhCmXa/2dN9SzV5SMCZRZeqP62so+nYreP9iFPllzW/B6tLqHTKioBYLSnBfYTXG+wtrQrHgPhTMSTr2VCydoD+Wd4Z4bwny0oolVf+St9rMOhtXidW8+5z7vjfwF7vKDDrMoz1FU8d+Pq1OIHhI5AHBACadTYpFVZLCbJiw8VK78EqUF4s86pF5w3AU4axKD01KB6LLe9O2xN76NrTXFmYhscnMBGjvER3pPXe768q5qMmhWGQKr4Ds5ScqOkFJGjG2JBMzPqTloOTX46Dx9LrsUC0b0JGAOiV/KMdaW4P9qS/YgwuFGeVaYc62of87E7BlLht7enFYGEB+0aHy2qHHgV7uy3iXpQLhRzr93FBHoyw+sp/KDwp/qfPhCjCShXdS9TRp9LmiRlcKMgdmwkXF9ANwR1b6jiRwnKkf8... Data: 0 entries Stack trace: InnerException is null
Comments (2)
DevExpress Support Team 8 years ago

    Hello Douglas,

    Thank you for contacting us. I have reproduced the behavior on my side. We need additional time to research it further.

    Thanks,
    Ilya P

    DevExpress Support Team 8 years ago

      Having researched this behavior, we found that it is caused by a browser's autocomplete functionality. Currently, you can apply the solution described in the The Invalid ViewState exception is thrown in Chrome when the Back and Forward buttons are used ticket on your side: add the following script to Default.aspx

      HTML
      <html> .... <body> .... <script type="text/javascript"> document.getElementById('__EVENTVALIDATION').setAttribute('autocomplete', 'off'); </script> </body> </html>

      Answers approved by DevExpress Support

      created 8 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.