J
Jerry O
Hi,
I appear to have a problem where the user is not kicked back to the
forms authentictation url when they post a webform, via a get, that
results in a long url due to viewstate. Instead they get the error at
the end of the post
Web.Config:
<authentication mode="Forms">
<forms path = "/" loginUrl = "View/Login.aspx" timeout="1"
protection="All" name="DiscAccept"/>
</authentication>
<authorization>
<deny users = "?" />
</authorization>
URL:
http://localhost/App/View/Login.asp...leHQ7PjtsPDFGYWxzZVRpbWU6IDE2OjAyOjUwLjAxMjQz
zc7Pj47Oz47Pj47Pj47Pu%2BxizxVhIWgw4i0JUECemLiNzSQ&Button1=Button
Any Ideas?
Thanks
Jerry
The following error occurs:
Server Error in '/App' Application.
--------------------------------------------------------------------------------
Unable to validate data.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Unable to validate data.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
System.Web.UI.LosFormatter.Deserialize(String input)
[HttpException (0x80004005): Authentication of viewstate failed. 1)
If this is a cluster, edit <machineKey> configuration so all servers
use the same validationKey and validation algorithm. AutoGenerate
cannot be used in a cluster. 2) Viewstate can only be posted back to
the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input)
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
[HttpException (0x80004005): Invalid_Viewstate
Client IP: 127.0.0.1
Port: 2254
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET
CLR 1.1.4322)
ViewState: dDw3ODI4NDUwNDg7dDw7bDxpPDE+Oz47bDx0PDtsPGk8MT47PjtsPHQ8cDxsPFRleHQ7PjtsPDFGYWxzZVRpbWU6IDE1OjUzOjMwLjI4NTMxNTg7Pj47Oz47Pj47Pj47Pp6guX9DgsXhd+9xKrEpLUf9I6e8
Http-Referer: http://localhost/App/View/CWebForm2...47PqIeW53YhnEVHftTGrxdl4VGu+Yz&Button1=Button
Path: /App/View/Login.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
System.Web.UI.Page.LoadPageViewState()
System.Web.UI.Page.ProcessRequestMain()
I appear to have a problem where the user is not kicked back to the
forms authentictation url when they post a webform, via a get, that
results in a long url due to viewstate. Instead they get the error at
the end of the post
Web.Config:
<authentication mode="Forms">
<forms path = "/" loginUrl = "View/Login.aspx" timeout="1"
protection="All" name="DiscAccept"/>
</authentication>
<authorization>
<deny users = "?" />
</authorization>
URL:
http://localhost/App/View/Login.asp...leHQ7PjtsPDFGYWxzZVRpbWU6IDE2OjAyOjUwLjAxMjQz
zc7Pj47Oz47Pj47Pj47Pu%2BxizxVhIWgw4i0JUECemLiNzSQ&Button1=Button
Any Ideas?
Thanks
Jerry
The following error occurs:
Server Error in '/App' Application.
--------------------------------------------------------------------------------
Unable to validate data.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Unable to validate data.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
System.Web.UI.LosFormatter.Deserialize(String input)
[HttpException (0x80004005): Authentication of viewstate failed. 1)
If this is a cluster, edit <machineKey> configuration so all servers
use the same validationKey and validation algorithm. AutoGenerate
cannot be used in a cluster. 2) Viewstate can only be posted back to
the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input)
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
[HttpException (0x80004005): Invalid_Viewstate
Client IP: 127.0.0.1
Port: 2254
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET
CLR 1.1.4322)
ViewState: dDw3ODI4NDUwNDg7dDw7bDxpPDE+Oz47bDx0PDtsPGk8MT47PjtsPHQ8cDxsPFRleHQ7PjtsPDFGYWxzZVRpbWU6IDE1OjUzOjMwLjI4NTMxNTg7Pj47Oz47Pj47Pj47Pp6guX9DgsXhd+9xKrEpLUf9I6e8
Http-Referer: http://localhost/App/View/CWebForm2...47PqIeW53YhnEVHftTGrxdl4VGu+Yz&Button1=Button
Path: /App/View/Login.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
System.Web.UI.Page.LoadPageViewState()
System.Web.UI.Page.ProcessRequestMain()