RE: HttpException : Unable to validate data
- From: Marie <Marie@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Aug 2007 12:48:00 -0700
Hi,
Can somebody please comment on the following proposed fixes indicated for
the error discussed in this thread? I'd like your opinions -- are we on the
right track --or is this a red herring we are following here?
We have installed a single-server Sharepoint 2007 FARM (using the advanced
"Complete" option) and enabled our single application on port 80. The
application, features, subpages, and functions, work well except for the
document check-in, check-out, publishing options on any document we have
placed in the shared document webparts on any of our application pages.
When you right-mouse-click on a document and select the "check-out" option,
immediately you will receive an "Unknown Error" message, and the operation
fails. The same error occurs for Check-In, and "Publish" operations on that
document (using the shared documents web part provided by Microsoft).
We have trapped the following error when this occurs:
"Unable to validate data. at
System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength) at
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
There is much experience with this same error on the Internet; various
developers are explaining how with a Sharepoint 2007 Farm implementation,
developers need to explicitly define the machine key setting, not allowing
them to autogenerate.
Have researched the following four links that describe this requirement:
http://support.stormhosts.net/showthread.php?p=2521
http://forums.whirlpool.net.au/forum-replies-archive.cfm/677326.html
http://www.kbalertz.com/Feedback.aspx?kbNumber=313091
http://msdn2.microsoft.com/en-us/library/system.web.configuration.machinekeysection.aspx
The main concern I have in following any of these suggestions in repairing
this error that we've encountered with the check-out/check-in and publish
options on a document in the "Shared Documents" web part is that the script
for the Sharepoint 2007 Complete installation did not tell us we needed to
set static machinekeys in web configuration files. So, I would feel
comfortable if I knew others had done the same in this scenario and were
successful.
Thanks, everybody!
--Marie
"James Crowley" wrote:
[Apologies for the duplicate, I posted the first from the wrong email alias].
Hi everyone,
My site is randomly firing off a "ExceptionHttpException : Unable to
validate data. " error on some of its forms at the moment:
-------
HttpException : Unable to validate data.
http://www.developerfusion.co.uk/Members/Private/EditProfile.aspx (Referred
by http://www.developerfusion.co.uk/Members/Private/EditProfile.aspx)
at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
-----------
I can't reproduce it myself, but several users and the automatic error
reports that have been generated indicate this. The site isn't running on a
web farm or anything, the application pool isn't being recycled, and I've
tried the standard solutions of specifying a fixed machine
validation/encryption key, and I've also tried disabling the view state mac
entirely, but the problem persists. Does anyone have any ideas what might be
triggering this?
Thanks,
- James
www.developerfusion.co.uk
- Follow-Ups:
- Re: HttpException : Unable to validate data
- From: Alvin Bruney [MVP]
- Re: HttpException : Unable to validate data
- Prev by Date: RE: Is there any way to use a field validator to check if one value is
- Next by Date: Re: 2 pages to one
- Previous by thread: Programmatically nested Repeaters: possible? how?
- Next by thread: Re: HttpException : Unable to validate data
- Index(es):
Relevant Pages
|