Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This free online tool: <a href="http://aspnetresources.com/tools/machineKey" rel="nofollow">http://aspnetresources.com/tools/machineKey</a> generates a machineKey element under the system.web element in the web.config file. Here is an example of what it generates:</p> <pre><code>&lt;machineKey validationKey="1619AB2FDEE6B943AD5D31DD68B7EBDAB32682A5891481D9403A6A55C4F91A340131CB4F4AD26A686DF5911A6C05CAC89307663656B62BE304EA66605156E9B5" decryptionKey="C9D165260E6A697B2993D45E05BD64386445DE01031B790A60F229F6A2656ECF" validation="SHA1" decryption="AES" /&gt; </code></pre> <hr> <p>Once you see this in your web.config, the error itself suddenly makes sense. The error you are getting says </p> <blockquote> <p>"ensure that configuration specifies the same validationKey and validation algorithm".</p> </blockquote> <p>When you look at this machineKey element, suddenly you can see what it is talking about.</p> <p>Modifying the pages element under the system.web element may not be necessary with this in place. This avoids the security problems associated with those attributes.</p> <hr> <p>By "hard coding" this value in your web.config, the key that asp.net uses to serialize and deserialize your viewstate stays the same, no matter which server in a server farm picks it up. Your encryption becomes "portable", thus your viewstate becomes "portable".</p> <p>I'm just guessing also that maybe the <em>very same server</em> (not in a farm) has this problem if for any reason it "forgets" the key it had, due to a reset on any level that wipes it out. That is perhaps why you see this error after an idle period and you try to use a "stale" page.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload