Invalid ViewState and Machine Keys

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Invalid ViewState and Machine Keys

    Ever since we moved our asp.net website to two load
    balanced servers we have been getting every once in a
    while invalid or corrupted viewstate errors. I've looked
    around on the internet and the only thing I could find was
    an article that told us to look at our machine.config file
    on both servers to see if the machinekeys matched. We did
    and found out that they are set to "autogenerate":

    <machineKey validationKey="AutoGenerate"
    decryptionKey="AutoGenerate" validation="SHA1"/>


    So, my question is how do we find out what we need to set
    the validationKey and decryptionKey to for both
    machine.config files? Do we create this or is it located
    on the server somewhere?
    Brian Lankford Guest

  2. Similar Questions and Discussions

    1. Question about duplicate ViewState keys.
      If two web server controls use ViewState and both controls inadvertently use the same key name for an item, will a collision occur between the two...
    2. viewstate is invalid for Macintosh users
      I am getting the following error message reported for Macinstosh end users only: "The viewstate is invalid for this page and might be corrupted"...
    3. Invalid Viewstate Webfarms and the elusive fix.
      When I run my asp.net application on a web farm I get the following error "The viewstate is invalid for this page and might be corrupted" ...
    4. sometimes clients get : viewstate invalid error , anyone knows why ?
      Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The...
    5. The viewstate is invalid for this page and might be corrupted
      I don't know if it helps, but I get this message when viewing an aspx page from my Toshiba E750 pda. The first page comes up fine. I then logon...
  3. #2

    Default Re: Invalid ViewState and Machine Keys

    I missed part of the question. The .NET help or quickstarts (I forget which
    off hand) has an app for creating a hashed key value for your machine key.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    Author: ADO.NET and XML: ASP.NET on the Edge

    ************************************************** **************************
    ****
    Think Outside the Box!
    ************************************************** **************************
    ****
    "Brian Lankford" <brian.lankford@ipaper.com> wrote in message
    news:52ff01c34195$cfd8cb90$a401280a@phx.gbl...
    > Ever since we moved our asp.net website to two load
    > balanced servers we have been getting every once in a
    > while invalid or corrupted viewstate errors. I've looked
    > around on the internet and the only thing I could find was
    > an article that told us to look at our machine.config file
    > on both servers to see if the machinekeys matched. We did
    > and found out that they are set to "autogenerate":
    >
    > <machineKey validationKey="AutoGenerate"
    > decryptionKey="AutoGenerate" validation="SHA1"/>
    >
    >
    > So, my question is how do we find out what we need to set
    > the validationKey and decryptionKey to for both
    > machine.config files? Do we create this or is it located
    > on the server somewhere?

    Cowboy \(Gregory A. Beamer\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139