Tags

I got this error when try to create a site collection using "Collaboration Portal" template and it is fine to create a site collection by using Team Site template.
  The details of the error from log was:
Exception was: ‘Microsoft.SharePoint.WebPartPages.WebPartPageUserException: This page has encountered a critical error. Contact your system administrator if this problem persists.     at Microsoft.SharePoint.ApplicationRuntime.SafeControls.RethrowExceptionIfNeeded()     at Microsoft.SharePoint.ApplicationRuntime.SafeControls.IsSafeControl(Type type, String& unsafeErrorMessage)     at Microsoft.SharePoint.WebPartPages.TypeCache.get_Item(Type type)     at Microsoft.SharePoint.WebPartPages.WebPart.WriteXmlGlobal(Boolean disableSafeControlsCheck)     at Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(PersonalizationScope scope)     at Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.get_Links()     at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartToStore(WebPart webPart, Int32 viewId, String viewGuid

image

I don’t know the solution but found out a workaround.

First Using STSADM.EXE to Create Empty Site Collection

There are situations when we want to create empty site collection, like when your content deployment job is failing due to conflicting content. In these cases STSADM.EXE comes handy.

STSADM.EXE is the only means to create a completely empty site collection.

Syntax
STSADM.EXE -o createsite -url <url-to-site-collection> -ownerlogin domain\user -owneremail <email-address>

Example
STSADM.EXE -o createsite -url http://servername:9009/sites/EmptySiteCollectionName -ownerlogin mydomain\praveen -owneremail abc@xyz.com -sitetemplate CMSPUBLISHING#0

Remember, using the “Blank Site” template does NOT creates an completely empty site collection. The site collection created by “Blank Site” template create some content for default website.
You can see the difference if you create a site collection using both methods and then inspect the content of the created sites using SharePoint designer.

Then go to http://servername:9009/sites/EmptySiteCollectionName, it will ask you to choose a site template. After select “Collaboration Portal”, the site is created without error.

Advertisements