Thursday, August 25, 2011

CRM 4.0 - Create new Organization failed with Exception: System.UnauthorizedAccessException: Access is denied

I tried to create new organization at one test environment and I have got following error:



I opened log and found there following information:

14:11:35| Error| Create new Organization (Name=Test, Id=e9586456-13cf-e011-bfc2-000c29d64722) failed with Exception:
System.UnauthorizedAccessException: Access is denied.

at System.DirectoryServices.Interop.UnsafeNativeMethods.IAds.SetInfo()
at System.DirectoryServices.DirectoryEntry.CommitChanges()
at Microsoft.Crm.Setup.Server.Utility.ADUtility.GrantAccess(DirectoryEntry groupEntry, String accountName)
at Microsoft.Crm.Setup.Server.Utility.NewOrgUtility.OrganizationConfigureGroups(String languageCode, String privilegedUserGroup, String sqlAccessGroup, String userGroup, String reportingGroup, String privilegedReportingGroup, Guid organizationId)
at Microsoft.Crm.Setup.Server.Utility.NewOrgUtility.ConfigureOrganization(String organizationId, String organizationName, String userAccountName, String userFirstName, String userLastName, String userEmail, String languageCode, String privilegedUserGroup, String sqlAccessGroup, String userGroup, String reportingGroup, String privilegedReportingGroup, Boolean grantNetworkServiceAccess, Boolean autoGroupManagement, String importFileLocation, Boolean sqmOption)
at Microsoft.Crm.Tools.Admin.CreateOrganizationInstaller.Create(Guid organizationId, String organizationUniqueName, String organizationFriendlyName, String baseCurrencyCode, String baseCurrencyName, String baseCurrencySymbol, String initialUserDomainName, String initialUserFirstName, String initialUserLastName, String sqlServerName, Uri reportServerUrl, String privilegedUserGroupName, String sqlAccessGroupName, String userGroupName, String reportingGroupName, String privilegedReportingGroupName, String applicationPath, String languageId, Boolean sqmOption, String organizationCollation, MultipleTenancy multipleTenancy)
14:11:35|Warning| Attempting to cancel a long running process: ProgressWizard. This might leave the data in an invalid state and the application might not function correctly.

Based on this information I have found solution for this issue at search engines - http://support.microsoft.com/kb/950417