0

Trying to create a Hosted Exchange 2019 hosting space returns the following error:

Page URL: http://XXX:9001/Default.aspx?pid=Home&mid=22&ctl=create_space&UserID=3
Logged User: serveradmin
Work on Behalf: alex
Hosting Space: 0
Stack Trace: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. —> System.Exception: Error executing ‘ADD’ task on ‘Exchange 2019’ HOSTING_SPACE_WR —> System.NullReferenceException: Object reference not set to an instance of an object.
at SolidCP.EnterpriseServer.PackageController.AddPackageWithResources(Int32 userId, Int32 planId, String spaceName, Int32 statusId, Boolean sendLetter, Boolean createResources, String domainName, Boolean createPreviewDomain, Boolean createWebSite, Boolean createFtpAccount, String ftpAccountName, Boolean createMailAccount, String hostName)
— End of inner exception stack trace —
at SolidCP.EnterpriseServer.PackageController.AddPackageWithResources(Int32 userId, Int32 planId, String spaceName, Int32 statusId, Boolean sendLetter, Boolean createResources, String domainName, Boolean createPreviewDomain, Boolean createWebSite, Boolean createFtpAccount, String ftpAccountName, Boolean createMailAccount, String hostName)
at SolidCP.EnterpriseServer.esPackages.AddPackageWithResources(Int32 userId, Int32 planId, String spaceName, Int32 statusId, Boolean sendLetter, Boolean createResources, String domainName, Boolean tempDomain, Boolean createWebSite, Boolean createFtpAccount, String ftpAccountName, Boolean createMailAccount, String hostName)
— End of inner exception stack trace —
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SolidCP.EnterpriseServer.esPackages.AddPackageWithResources(Int32 userId, Int32 planId, String spaceName, Int32 statusId, Boolean sendLetter, Boolean createResources, String domainName, Boolean tempDomain, Boolean createWebSite, Boolean createFtpAccount, String ftpAccountName, Boolean createMailAccount, String hostName)
at SolidCP.Portal.UserCreateSpace.CreateHostingSpace()

Any suggestions?

EDIT:

I am able to add a domain to the empty hosting space after the error above,

Trying to further add an Organization in the empty hosting space returns the following error:

Error creating organization. See audit log for more details.

System.Web.Services.Protocols.SoapException: Server was unable to process request. —> System.Exception: Error executing ‘CREATE_ORG’ task on ‘exchange.test’ ORGANIZATION —> System.Web.Services.Protocols.SoapException: Server was unable to process request. —> Some or all identity references could not be translated.at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)at SolidCP.EnterpriseServer.OrganizationController.CreateOrganization(Int32 packageId, String organizationId, String organizationName, String domainName)— End of inner exception stack trace —at SolidCP.EnterpriseServer.OrganizationController.CreateOrganization(Int32 packageId, String organizationId, String organizationName, String domainName)at SolidCP.EnterpriseServer.esOrganizations.CreateOrganization(Int32 packageId, String organizationID, String organizationName, String domainName)— End of inner exception stack trace —

Event log on CAS also has the following extra errors:

[5/9/2019 10:40:49 AM] ERROR: HostedSolution

System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.

at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)

at System.Security.Principal.NTAccount.Translate(Type targetType)

at System.Security.AccessControl.DirectoryObjectSecurity.ModifyAccess(AccessControlModification modification, ObjectAccessRule rule, Boolean& modified)

at System.Security.AccessControl.DirectoryObjectSecurity.AddAccessRule(ObjectAccessRule rule)

at SolidCP.Providers.HostedSolution.ActiveDirectoryUtils.AddPermission(String objectPath, IdentityReference identity, ActiveDirectoryRights permission, ActiveDirectorySecurityInheritance inheritance)

at SolidCP.Providers.HostedSolution.OrganizationProvider.SetOUAclPermissions(String organizationId)

Answered question