473,327 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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 1904
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dgermano | last post by:
I need some info to make sure I avoid problems with my webfarms. Currently I'm running 3 separate sites, each with their own webfarm of 2-3 webservers. All of these sites are using the same...
2
by: Zoe Hart | last post by:
In an effort to address ViewState invalid errors, I want to set the machineKey element in web.config on my two web servers. (The load balancer should be keeping a client on a single web server...
3
by: TK | last post by:
How can I get my unique key values for the "validationkey" and "decryptionkey" attributes in a <machineKey> element in my web.config? Is there any tools I can use for? Any input would be highly...
4
by: STech | last post by:
Are there any built in ways to read the MachineKey attributes from the machine.config? Thanks.
0
by: Komil | last post by:
Hey Guys, We are using a webfarm environment to host our current site. There are three machine involved in this webfarm. I have copied the same machinekey information that was generated from...
5
by: Nick | last post by:
my web servers had .NET 1.1 on them and today we installed .NET 2.0 to deploy a few new applications. After running aspnet_resiis.exe -i under the 2.0 framework directory all my single signon 1.1...
1
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm....
1
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm developing a web portal and are about to move the development environment to a different computer. I wonder if I have to change the machineKey because I changed developed...
0
by: archana | last post by:
Hi all, can anyone tell me use of machinekey in machine.config file. I am developing one windows service and i am trying to use state service to store session data. I am not clear about its...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.