failed-to-load-viewstate

Failed to load viewstate on NLB

时光毁灭记忆、已成空白 提交于 2021-02-07 08:29:29
问题 We have a system which dynamically creates the controls of a page every post back and handles back using the browser history and such. The problem is that on the production server (2 nodes on NLB) we get randomly in differnet spots with no correlation we have found, a failed to load viewstate, the control tree might be different error. However, the exact same code on our staging server (same NLB setup as production) this has never happened. I'm basically ruling out that its code at this point

Failed to load viewstate on NLB

℡╲_俬逩灬. 提交于 2021-02-07 08:29:10
问题 We have a system which dynamically creates the controls of a page every post back and handles back using the browser history and such. The problem is that on the production server (2 nodes on NLB) we get randomly in differnet spots with no correlation we have found, a failed to load viewstate, the control tree might be different error. However, the exact same code on our staging server (same NLB setup as production) this has never happened. I'm basically ruling out that its code at this point

Setting ViewStateUserKey gives me a “Validation of viewstate MAC failed” error

南楼画角 提交于 2020-01-09 07:41:26
问题 I have the following in my BasePage class which all my ASPX pages derive from: protected override void OnInit(EventArgs e) { base.OnInit(e); ViewStateUserKey = Session.SessionID; } I also have a machineKey set in Web.config . I don't think this error is because of a web farm because this happens on my dev machine too. My host has now upgraded to .NET 3.5 SP1. After this update, everytime I compile with the ViewStateUserKey setting above, I constantly get the "Validation of viewstate MAC

ASP.NET ViewState validation when manipulating DOM

二次信任 提交于 2019-12-24 15:57:40
问题 I'm, using jQuery and ASP.NET to show a dialog containing buttons. After some scouring, I got the buttons in the dialog to work by adding a tad more JavaScript to append the dialog to the form. var dlg = $('#ctl00_ctl00_PageContent_PageContent__pnlPopup').dialog({ autoOpen: false, height: 180, width: 500, modal: true, draggable: true }); dlg.parent().appendTo($('form:first')); // without this, controls in the dialog are non-functional This works fine until I open the dialog, close it, then

Setting ViewStateUserKey gives me a “Validation of viewstate MAC failed” error

[亡魂溺海] 提交于 2019-11-27 23:33:39
I have the following in my BasePage class which all my ASPX pages derive from: protected override void OnInit(EventArgs e) { base.OnInit(e); ViewStateUserKey = Session.SessionID; } I also have a machineKey set in Web.config . I don't think this error is because of a web farm because this happens on my dev machine too. My host has now upgraded to .NET 3.5 SP1. After this update, everytime I compile with the ViewStateUserKey setting above, I constantly get the "Validation of viewstate MAC failed" error on every postback. What am I doing wrong here? Is this setting even necessary anymore with the