Today I added a XSLTListViewWebPart to my Site Definition and I receivede the following error:

WebPartPageUserException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

My ListId in the XML looked like this:

<property name=”ListId” type=”System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ />

Adding null=”true” resolved this issue:

<property name=”ListId” type=”System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ null=”true” />

Advertisements