views:

79

answers:

2

I am told that form.action attribute is being honored right now; so we can post a form to a different page. i have tried that, but i get an error to do with ViewState (I realise why).

What I am trying to find out for sure if I can in fact post to a different page w/o getting this error; otherwise I see no point for Microsoft to implement this "feature" at all,

Unfortunately, in my app i HAVE to post to a different IP, so I have to make this work. Any ideas?

I am completely baffled as to why honor form.action but not make it work - it's a soft of a half-baked feature. According to MS this is a known issue.

Refer to this: here

+1  A: 

So if your machine keys are the same and or you post without viewstate on the page, then you can cross post all day long.

So if you set the machine key in the machine config of both servers to the same value you should be good.

DevelopingChris
can two machines have the same machine key? (we have two servers and I need to be able to crosspost).how do I generate machine key?
gnomixa
Chris, I am posting for now from one page to another IN THE SAME APPLICATION on the SAME machine (my dev machine).what gives? this makes no sense to me, am i missing something?
gnomixa
oh and I need viewstate. if i can't use viewstate, this solution is useless for me. is it possible to cross post or not? if so, what do i need to do to achieve error-less cross posting with viewstate enabled?
gnomixa
A: 

help anyone???? I used a machine key generator and came up with something like:

<machineKey validationKey="somesequencegenerated"
decryptionKey="decryptionkey generated" validation="SHA1" />

put these settings in my web.config, am still getting this same error:

"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."

What gives? Is anyone able to answer how to solve this issue?

gnomixa