After creating a workspace the status column in the workspace list shows an Error Occurred.
The log shows this or an similar error :
Solutions2Share.Solutions.CollaborationManager.Services.Components.Workspace.CreateFromTemplateInternal: <nativehr>0x80070005</nativehr><nativestack></nativestack> ExceptionType: 'UnauthorizedAccessException' ExceptionMessage: '<nativehr>0x80070005</nativehr><nativestack></nativestack>' StackTrace: '
at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
at Microsoft.SharePoint.Library.SPRequest.OpenWebInternal(String bstrUrl, Guid& pguidID, DateTime& pdtTimeCreated, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, Int32& plSiteFlags, Boolean& pbOverwriteMUICultures, Boolean& pbMUIEnabled, String& pbstrAlternateMUICultures, Int32& plSiteSchemaMajorVersion, Int32& plSiteSchemaMinorVersion, Int32& plSiteSchemaBuildVersion, Int32& plSiteSchemaRevisionVersion, Int32& puiVersion, Int16& pnClientTag, Boolean& pfIsEvalSite, Guid& pgSourceSiteId, DateTime& pdtExpirationDate, Guid& pgEvalSiteId, Guid& pguidAppInstanceId, String& pbstrRemoteAppUrl, String& pbstrOAuthAppId, String& pbstrAppDatabaseName, Guid& pgAppDatabaseServerReferenceId, String& pbstrAppDatabaseTargetApplicationId, String& pbstrAppWebDomainId, Int32& plUpgradeFlags, DateTime& pdtReminderDate, DateTime& pdtLastContentChange, DateTime& pdtLastSecurityChange, UInt64& pmaskDeny)
at Microsoft.SharePoint.SPWeb.InitWebPublic()
at Microsoft.SharePoint.SPWeb.get_Url()
at Microsoft.SharePoint.SPEventReceiverDefinitionCollection.EnsureEventReceivers()
at Microsoft.SharePoint.SPBaseCollection.GetEnumerator()
at Solutions2Share.Solutions.CollaborationManager.Services.Components.Workspace.<>c__DisplayClass5.<Set_SecurityEventHandler>b__4()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
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 Solutions2Share.Solutions.CollaborationManager.Services.Components.Workspace.Set_SecurityEventHandler(SPWeb web)
at Solutions2Share.Solutions.CollaborationManager.Services.Components.Workspace.CreateFromTemplateInternal(String siteUrl, String SiteTitle, UInt32 lcid, SPUser owner, Byte[] TemplateFile, SPListItem workspaceListItem, Boolean createArchivedWS, Guid contentdbid, String customWorkspaceUrl, Nullable`1 isHostNamedSiteCollection)' Source: '' TargetSite: 'Void HandleUnauthorizedAccessException(System.UnauthorizedAccessException)'
Cause
The Farm Account in the Collaboration Manager Service Application is not correctly set or the password is wrong.
Solution
You can find the complete instructions for the CM Service Application here.