Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Eh, my posts from last night were moderated way out of order. Would be nice if they were timestamped when saved instead of when approved.
Bottom line, still getting errors. |
|
|
|
|
Rank: Member
Joined: 5/14/2005(UTC) Posts: 398
|
Just curious, How big is the viewstate in the new version, and specifically on the page in question
If you can reproduce the error from another Internet connection then that would help to point towards the server not receiving the viewstate back in good condition. Otherwise it could be a problem on his end.
BTW: the moderation does makes it hard to efficiently or quickly help someone in a thread, maybe it would be easier to post questions in the un-moderated areas. |
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Well, it doesn't really matter where the viewstate is, the issue is when the viewstate is encrypted. The problem is that a number of controls is asp.net 2.0 force this to happen. The VIEWSTATEENCRYPTED hidden field is always rendered at the bottom of the page. So if the page is posted back and this field has yet to render then the server thinks the viewstate is not encrypted and doesn't try to decrypt it. When this happens the MAC is applied against the encrypted viewstate and then fails. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
It's happened to me, too, so I doubt it's a client issue. I'm in an airport right now on my crackberry, so I can't look at the size or anything I'll check up on this later.
Any way to move the encryption stuff to the top of the page (asks the idiot)? :) |
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Add these to the pages tag in the web.config in order to verify that this is the issue. if you do this and the issues go away, then at least we know what we are looking at. Do not leave these in there on a production website though! These are there for security reasons.
viewStateEncryptionMode ="Never" enableEventValidation="false"
And no, moving these hidden fields would be a total hack, and most likely would cause other issues, similar to the hack we put in to move the viewstate to the bottom of the page. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 5/14/2005(UTC) Posts: 398
|
Recomendation/Feature Request:
slim down the viewstate,.. i've looked at some of the bv stores listed and the viewstate ranges for 4k to 15k. Most of it is needless, even these forum pages have less than half a k of viewstate. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.