Oops! Mistake in Custom Application.Master
Posted by Steve Pietrek on February 18, 2008
I have been working on a custom application.master file for a client. Things look good but when I attempted to add a workflow to a list, I received the following error:
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)
RESOLUTION: Duh! I knew this was an issue but forgot to remove it. The problem is I had the Search box included in application.master – a no-no. After removing it from the application.master, things seem to be working now – at least I was able to add a workflow. Next step is to create a HTTPModule which will automatically switch the application.master for _layouts pages. I’ll blog about this when I am complete.