Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 132535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:16:41+00:00 2026-05-11T06:16:41+00:00

I have a page which contains some search fields to query a database, and

  • 0

I have a page which contains some search fields to query a database, and display results. The viewstate is required to retain the lists of items in dropdowns.

Everything works fine in Firefox (3) & Chrome, but fails in Internet Explorer, but only sometimes (certain actions, such as resetting the form, which really just does a response.redirect with some querystring parameters)… what happens in the Viewstate gets dumped on the URL, and an error page is thrown.

Has anybody come across this before? Perhaps some pointers as to what might be causing this to occur in IE?

Thanks heaps,

greg

UPDATE:

On further investigation, i have determined that the actual error is this:

‘Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ‘

Some more information that might help: This is caused by a user control that is being hosted in a content management system (Umbraco), which might have something to do with why the viewstate is being passed to the page (as the control is contained within a greater page in the CMS). I will investigate this a little further, but any other suggestions would be much appreciated.

cheers greg

UPDATE 2:

Can anybody suggest why this only happens in IE (and not in FF or Chrome)?? Seems hardly likely its an issue with controls changing or machine keys or other suggestions I’ve read around the place, if other browsers can deal with it fine.

Any ideas what IE does differently that could cause this failure??

SOLUTION:

Turns out it was a really silly problem – I was using the wrong master template in the CMS, and therefore had 2 form tags. Remove extra form tag, problem solved!

Thanks heaps to bendewey for helping me solve this problem (see the comments in bendewey’s post).

That’s 4 hours of my life i’d love to get back… but glad i can move on now. Thanks again Stack Overflow community 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:16:41+00:00Added an answer on May 11, 2026 at 6:16 am

    It seems a bit wierd that your viewstate is posting to the the Url. The would happen if you had some custom form tag that was using a GET method instead of the default asp.net page level form tag.

    If you need a form tag with the GET method I would set EnableViewState=’false’ on the Page declaration and setup some sort of list caching. Here is a sample, but you can find much better samples online (specifically ones that do double check locking). This way you can call this every postback and not worry about storing anything in the viewstate.

    List<string> getCachedFields() {     var searchFields = Cache['searchFields'] as List<string>;     if (searchFields == null)     {         searchFields = GetFieldsFromDbOrSomewhereExpensive();         Cache['searchFields'] = searchFields;     }     return searchFields; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 112k
  • Answers 112k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Strings are mutable in PHP so using .= does not… May 11, 2026 at 9:59 pm
  • Editorial Team
    Editorial Team added an answer well, 0 is less than 2 Since you are JG'ing… May 11, 2026 at 9:59 pm
  • Editorial Team
    Editorial Team added an answer SELECT * FROM resource LEFT OUTER JOIN perms_groups ON resource.id… May 11, 2026 at 9:59 pm

Related Questions

I have a page where I submit some data, and return to the original
We have some web pages which have two frames, with one frame in the
I have a page which contains a products' list. I decided to use an
I have a web page which contains a select box. When I open a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.