Questions tagged [failed-to-load-viewstate]

The failed to load viewstate error is a frequent problem encountered when creating dynamic asp.net pages when you fail to create the controls exactly the same way each postback.

32 questions
28
votes
3 answers

JetBrains Rider EAP on Linux - Solution load failed: MsBuild not found

Just installed the latest version of Rider EAP (163.12057) and tried to create a new solution. In my Solution Explorer its shows my Solution and (load failed). In the Event Log window I get the error message: Solution 'FirstSolution' load failed:…
ephtron
  • 1,115
  • 1
  • 10
  • 16
16
votes
5 answers

Setting ViewStateUserKey gives me a "Validation of viewstate MAC failed" error

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…
Druid
  • 6,423
  • 4
  • 41
  • 56
4
votes
4 answers

Failed to load viewstate on NLB

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…
Beyond
  • 2,050
  • 2
  • 13
  • 12
3
votes
3 answers

Displaying and hiding parts of the web form freely without limitations in order to avoid ViewState loading problems

The problem I have a web form and I would like to hide and show some panels. When I say "Panel" I do not mean the Panel control but just a pane in the html (usually represented by a DIV). Well I want to show and hide this panels as I wish... no…
Andry
  • 16,172
  • 27
  • 138
  • 246
2
votes
1 answer

Expo simulator not opening on device

I have been trying to run expo on my device. The laptop am using cannot meet up with android ide specs so i need something light to develop an android app. So I choose expo with react-native .When I use tunnel and hotspot my laptop to my phone…
2
votes
1 answer

ViewStateUserKey sometimes doesn't validate

I have an application in ASP.NET that uses forms authentication. It has the following code. if (User.Identity.IsAuthenticated) ViewStateUserKey = User.Identity.Name; Stepping through I see this code executes on each page load. When a logged…
Anthony D
  • 10,877
  • 11
  • 46
  • 67
2
votes
1 answer

Failed to execute 'replaceState' on 'History': A history state object with URL

We have faced this type of problem.We are Developing phonegap app.We don't changed any code.But unfortunately my eclipse stop.And then we changed project location.then we open html page in browser.We got error like this Please guide to us.
Pavan Alapati
  • 635
  • 2
  • 8
  • 21
2
votes
0 answers

Failed to load resource: the server responded with a status of 404 (Not Found) (lines_white.png, line 0)

I was just wondering if anyone can let me know what I need to do... I've just created a new website through wordpress and the page loading speed was pretty slow so I decided to inspect elements and found an error saying "[Error] Failed to load…
2
votes
1 answer

Problem with LoadViewState after F5 page refresh - Failed to load viewstate

I'm having a problem in my ASP.NET application with Viewstate and F5 page refresh. If after navigating from one page to another I immediately hit F5, I get the following error: System.InvalidCastException "Unable to cast object of type…
LauraB
  • 860
  • 2
  • 14
  • 17
2
votes
1 answer

trouble with google map

I have any adress recorded in my databse corresponding to the customers. The trouble I met is concerning the including of a googlemap. I have the following code that convert an adress to the polares. function getCoordonnees($adresse) { $url =…
1
vote
1 answer

ASP.NET ViewState validation when manipulating DOM

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 =…
Echilon
  • 10,064
  • 33
  • 131
  • 217
1
vote
0 answers

Failed to load resource: the server responded with a status of 404 (Not Found)-Rmarkdown dashboard

I am trying to have a dashboard load unto a website from a markdown document. The problem is only the dashboards are not loading up while the other graphs do. The code is as follows: title: "Profit Metrics" author: "xx" output:…
1
vote
1 answer

Failed to load viewstate - no dynamically loaded controls

We are getting sporadic reports of the famous "Failed to load viewstate". It is very difficult to track down because we are not using any dynamically loaded controls. And it is sporadic. "Failed to load viewstate. The control tree into which…
Sten
  • 1,079
  • 11
  • 25
1
vote
0 answers

ascx viewstate null when inside hidden PlaceHolder

I have a custom user control ascx that exposes a simple property /// /// The currently selected ID, if there is one /// public virtual int? SelectedId { get { return (int)ViewState["XXID"]; } …
Martin Belcher - AtWrk
  • 4,579
  • 4
  • 33
  • 41
1
vote
5 answers

MaskedTextBoxFor loses value after submitting the MVC Razor View

After submitting the form to the controller, the MaskedTextBoxFor inputs lose their values if the view returns from controller while all the other values (textboxdor, dropdownlistfor) remain as they are submitted. So, how to make MaskedTextBoxFor…
1
2 3