Everything SharePoint and XAML

My continuous learning of SharePoint, XAML, Silverlight, Windows Phone 7, Windows 8, Office, VSTO, C#…

Archive for February 18th, 2008

PortalSiteMapProvider and CAS

Posted by Steve Pietrek on February 18, 2008

Today I was looking to roll my own site map. Nothing special – just wanted to display the content in a SPTreeView. The code is fairly basic:

...
PortalSiteMapProvider portalSiteMap = new PortalSiteMapProvider();
portalSiteMap.IncludePages = PortalSiteMapProvider.IncludeOption.Always;
portalSiteMap.IncludeHeadings = false;
portalSiteMap.EncodeOutput = true;
...

Read the rest of this entry »

Advertisements

Posted in SPErrors | 2 Comments »

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.

Posted in SPErrors | Comments Off on Oops! Mistake in Custom Application.Master