469,282 Members | 1,944 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Odd MachineKey Error?

Ron
Error Message:Unable to validate data.

Stack Trace: at System.Web.Configuration.MachineKey.GetDecodedData (Byte[]
buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)

at System.Web.UI.LosFormatter.Deserialize(String input)

Has anyone seen this? Or know why it has ocured?

Thanks,

Ron
Nov 18 '05 #1
7 1805
Hi Ron,

From your description you encountered the following error
======================
Error Message:Unable to validate data.

Stack Trace: at System.Web.Configuration.MachineKey.GetDecodedData (Byte[]
buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)

at System.Web.UI.LosFormatter.Deserialize(String input)
=========================

in your asp.net web application, and based on the error msg, the problem
seems due to the problem on retrieveing the correct machinekey from your
web application's confige file. When do you you find this problem and in
which application or just when accessing a certain page ?
Also, have you manually specified the <machinekey> in your web
application's configure file?

Generally, the machinekey's key value is used to help encrypt our asp.net
web application 's VIEWSTATE , FormsAuthentcation's ticket(if we use it) or
the out of process Session's sessionid:

#<machineKey> Element
http://msdn.microsoft.com/library/en...hineKeySection
.asp?frame=true

Please have a further check on this and if there're any new findings,
please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 18 '05 #2
Hi Ron,

Have you had a chance to check the things in my last reply or have you got
any further progress on this issue? If there're anything else we can help,
please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
Hi Steven,

I am getting the same error.

Error Message: Unable to validate data.
Error Source: System.Web
Error Target Site: Byte[] GetDecodedData(Byte[], Byte[], Int32, Int32,
Int32 ByRef)

This error is sporadic and happens when users access the website for
the first time. We don't have machinekey specified in web.config.

Please let me know if you have any solution.

Thanks,
Harshang
v-******@online.microsoft.com (Steven Cheng[MSFT]) wrote in message news:<gz*************@cpmsftngxa10.phx.gbl>...
Hi Ron,

From your description you encountered the following error
======================
Error Message:Unable to validate data.

Stack Trace: at System.Web.Configuration.MachineKey.GetDecodedData (Byte[]
buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)

at System.Web.UI.LosFormatter.Deserialize(String input)
=========================

in your asp.net web application, and based on the error msg, the problem
seems due to the problem on retrieveing the correct machinekey from your
web application's confige file. When do you you find this problem and in
which application or just when accessing a certain page ?
Also, have you manually specified the <machinekey> in your web
application's configure file?

Generally, the machinekey's key value is used to help encrypt our asp.net
web application 's VIEWSTATE , FormsAuthentcation's ticket(if we use it) or
the out of process Session's sessionid:

#<machineKey> Element
http://msdn.microsoft.com/library/en...hineKeySection
.asp?frame=true

Please have a further check on this and if there're any new findings,
please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4
v-******@online.microsoft.com (Steven Cheng[MSFT]) wrote in message news:<oE*************@cpmsftngxa06.phx.gbl>...
Hi Ron,

Have you had a chance to check the things in my last reply or have you got
any further progress on this issue? If there're anything else we can help,
please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Hi Steven,

I am getting the same error.

Error Message: Unable to validate data.
Error Source: System.Web
Error Target Site: Byte[] GetDecodedData(Byte[], Byte[], Int32, Int32,
Int32 ByRef)

This error is sporadic and happens when users access the website for
the first time. We don't have machinekey specified in web.config.

Please let me know if you have any solution.

Thanks,
Harshang
Nov 18 '05 #5
Hi Harshang,

Thanks for posting. As for the validation error, has the machinekey element
in your server's machine.config file be changed? Or is there anything in
the configure file be currupted?
Also ,such error often occurs in web farm scenario since the different load
balance server's machinekey setting are not idential.

see
http://support.microsoft.com/?id=832183

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #6
I am also getting the same error. I am not on a Server Farm, however, I
am using Server.Transfer taking advantage of the performance gain and
being able to add querystring values to the Context.

Doing some research, some people mentioned that if you specify the
second parameter value to Server.Transfer as true would cause this
problem to occur, however, thats not the case for me.

The wierd part is that I cannot replicate this problem on my development
box which is on a Windows XP Professional machine running IIS 5. I keep
getting this error on a Window 2003 production box.

Any help would be greatly appreciated.
"Steven Cheng[MSFT]" wrote:
Hi Harshang,

Thanks for posting. As for the validation error, has the machinekey element
in your server's machine.config file be changed? Or is there anything in
the configure file be currupted?
Also ,such error often occurs in web farm scenario since the different load
balance server's machinekey setting are not idential.

see
http://support.microsoft.com/?id=832183

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #7
what is wierd is that I used to have the same site up and running without any
problems on another Windows 2003 production box about 4 months back. I
checked the new Windows 2003 box its currently on and its a HyperThreaded
Windows 2003 installation.

Not sure if that makes any difference.

"Huzaifa Tapal" wrote:
I am also getting the same error. I am not on a Server Farm, however, I
am using Server.Transfer taking advantage of the performance gain and
being able to add querystring values to the Context.

Doing some research, some people mentioned that if you specify the
second parameter value to Server.Transfer as true would cause this
problem to occur, however, thats not the case for me.

The wierd part is that I cannot replicate this problem on my development
box which is on a Windows XP Professional machine running IIS 5. I keep
getting this error on a Window 2003 production box.

Any help would be greatly appreciated.
"Steven Cheng[MSFT]" wrote:
Hi Harshang,

Thanks for posting. As for the validation error, has the machinekey element
in your server's machine.config file be changed? Or is there anything in
the configure file be currupted?
Also ,such error often occurs in web farm scenario since the different load
balance server's machinekey setting are not idential.

see
http://support.microsoft.com/?id=832183

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by dgermano | last post: by
2 posts views Thread by Zoe Hart | last post: by
3 posts views Thread by TK | last post: by
4 posts views Thread by STech | last post: by
5 posts views Thread by Nick | last post: by
1 post views Thread by Jeff | last post: by
reply views Thread by archana | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.