Saturday, January 8, 2011

Language packs

I needed to setup a demo site, en francais. A couple of simple searches and it all seemed very straightforward. Well, there's one catch. For some reason, I didn't clue in to the fact that the instructions I found for SharePoint Foundation, which came up first in my search, were not for me. It's all obvious now - I needed My Site Host which is a feature in SharePoint Server. Therefore I should have used the instructions for SharePoint Server. Actually, the instructions are exactly the same except that the language packs they refer to are different.

In any case, if you need other languages, make sure you get the right language packs and instructions for your installation - either for SharePoint Foundation or SharePoint Server. If you need to know the differences between the two editions go to this blog entry to Compare SharePoint Editions.

Here are a few exceptions found in the ULS log - reformatted for easier reading or in case a search got you here :-)

Failed to create personal site ([username], [personal site URL]): System.ArgumentException: File or arguments not valid for site template 'SPSPERS#0'.  Parameter name: WebTemplate
     at Microsoft.SharePoint.SPWebTemplateCollection.get_Item(String strKey)
     at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
     at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)
     at Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate, SPSiteSubscription siteSubscription)
     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()


My Site creation failure for user '[username]' for site url '[site URL]'.  The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site.  ---> System.ArgumentException: File or arguments not valid for site template 'SPSPERS#0'.  Parameter name: WebTemplate
     at Microsoft.SharePoint.SPWebTemplateCollection.get_Item(String strKey)
     at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
     at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)
     at Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate, SPSiteSubscription siteSubscription)
     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
     --- End of inner exception stack trace ---
     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
     at Microsoft.Office.Server.UserProfiles.UserProfile.CreateSite(String strRequestUrl, Boolean bCollision, Int32 lcid)


Exception while creating personal site for 'EASTCLOUD\administrator': Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> System.ArgumentException: File or arguments not valid for site template 'SPSPERS#0'.  Parameter name: WebTemplate
     at Microsoft.SharePoint.SPWebTemplateCollection.get_Item(String strKey)
     at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
     at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)
     at Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate, SPSiteSubscription siteSubscription)
     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
     --- End of inner exception stack trace ---
     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
     at Microsoft.Office.Server.UserProfiles.UserProfile.CreateSite(String strRequestUrl, Boolean bCollision, Int32 lcid)
     at Microsoft.Office.Server.UserProfiles.UserProfile.CreatePersonalSite(Int32 lcid)



What I do find annoying is why Microsoft keeps changing the edition naming conventions with every release:

  • SharePoint Team Services (STS) / SharePoint Portal Server (SPS)
  • Windows SharePoint Services (WSS) / Microsoft Office SharePoint Server (MOSS)
  • SharePoint Foundation / SharePoint Server

What's next?

No comments:

Post a Comment