Workspace creation Error occured - Unauthorized Access Exception

Workspace creation Error occured - Unauthorized Access Exception


Symptom


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

Please control the settings of the Collaboration Manager Service Application.

You can find the complete instructions for the CM Service Application here.



    • Related Articles

    • Workspace creation Error occured - Exception Contentdb null

      Symptom When creating a Workspace you receive the following error in the ULS log and status is set to "Error occured": ULS Error: Solutions2Share.Solutions.CollaborationManager.Services.Components.Workspace.CreateFromTemplateInternal: Contentdb null ...
    • First template creation results an error

      Problem: The first template creation results in an error. The second one creates normally. Solution: Please delete the first template. After that, creation of templates works again without limitations UPDATE: The bug is fixed. 
    • Templates cannot be created - Access denied

      Problem: You will create a Template and you get an error like "Solutions2Share.Solutions.CollaborationManager.Pages.CreateTemplate.btnOK_onClick: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))   ExceptionType: ...
    • Error during template creation "The EXECUTE premission was denied"

      Error in Log Excpetion occured in CM Service application. Error System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: The EXECUTE permission was denied on the object 'proc_putObjectTVP', database 'configDB_name'  Reason In the ...
    • Access denied while calling the workspace

      Problem: After you create the workspace, the page can only be accessed using the administrator account. All users who are entitled to the page about People Permission Fields or Group Permission Fields get an Access denied message when the page. ...