Re: HttpException : Unable to validate data

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi, Alvin -- Thank you very much for your assistance in de-bugging this
problem -- and I'm glad that I DID NOT have to reset machine keys -- as was
indicated by the error. This solution path, as indicated by the error
message originally received from my application, was indeed a red-herring.
The solution path, which was to create a brand new VM with Windows 2003
Server and all patches installed -- with IIS, then install MS SQL 2005 with
all patches, then Sharepoint 2007 with the Advanced - Complete option prior
to creating the new application on port 80 was the correct way to test the
validity of the code. Sharepoint 2007 worked without errors - my site created
without errors; the whole thing was flawless. I did also follow best
practices regarding creating domain users (spadmin, spconfig, and spsearch)
to handle the installation and configuration of the farm services -- which
helped too. So, bottom line -- it was correct to avoid altering machine keys
- this is never the right answer for a Sharepoint2007 installation and we no
longer have the error since creating a new, pristine server environment.

Thanks to Microsoft for coming through on this one. I truly appreciated the
response and support I received in de-bugging this error.

--Marie

"Alvin Bruney [MVP]" wrote:

I'll take a chance and comment. I don't see why the machine key encryption
should be the cause. If it were, a lot more than checkin/checkout would
fail. Have you looked at permissions configurations for the users where this
is failing? Check-in/out is basically a file copy. That is where I would
start using a tool like filemon for instance.

Have you also tried removing/deleting the document library and recreating
it? Have you tried running the repair wizard on the site?

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"Marie" <Marie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9F53C45D-C7E1-4656-BC7F-C6259480FC90@xxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • RE: SBS2003 Standard Edition SP1 Upgrade SharePoint Sites and comp
    ... followed your instructions yet for reinstallation of sharepoint. ... However, if you configure Companyweb ... please let me know whether the SP1 installation ...
    (microsoft.public.windows.server.sbs)
  • Re: HttpException : Unable to validate data
    ... configuration with a single-server, where we created an application on port ... installation, the function worked, error free. ... document check-in, check-out, publishing options on any document we have ... modifier, Int32 start, Int32 length, Int32& dataLength) at ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Exchange Reinstall??
    ... Nothing applicable in the Event log. ... Sharepoint was because the file structure existed for it, ... > condition before the reinstall as well? ... >> in, reinstalled over existing installation and after install was complete, ...
    (microsoft.public.exchange.setup)
  • Re: SharePoint V3 Install Error
    ... The uninstall and reinstall of .net framework 2 and 3 as well as ... SharePoint Services 3.0 technology) and am at the portion "Start the ... whatever you are installing WSS as sufficient rights to the SQL Server ... Let us also know which Microsoft installation instructions you ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: missing sharepoint data
    ... database to migrate. ... Sharepoint, under WMSDE did not have a \data subfolder. ... through the course of its installation and has not yet functioned as a server. ... You'll also have to remove SQL 2005 prior to that. ...
    (microsoft.public.windows.server.sbs)