public void Main2()
{
DeploymentServiceClient service = Microsoft.Xrm.Sdk.Deployment.Proxy
.ProxyClientHelper.CreateClient(new Uri("http://xxxxxxxxx:5555/XRMDeployment/2011/Deployment.svc"));
Console.WriteLine(CreateOrganization(service
, new Organization
{
UniqueName = "testOrgProv1",
FriendlyName = "testOrgProv1",
SqlServerName = "CRMDDC2",
SrsUrl = @"http://crmddc2/Reports",
BaseCurrencyCode = RegionInfo.CurrentRegion.ISOCurrencySymbol,
BaseCurrencyName = RegionInfo.CurrentRegion.CurrencyNativeName,
BaseCurrencySymbol = RegionInfo.CurrentRegion.CurrencySymbol,
State = Microsoft.Xrm.Sdk.Deployment.OrganizationState.Enabled
}));
}
Guid? CreateOrganization(IDeploymentService deploymentService
, Organization org)
{
BeginCreateOrganizationRequest req = new BeginCreateOrganizationRequest
{
Organization = org
};
BeginCreateOrganizationResponse resp = deploymentService.Execute(req) as BeginCreateOrganizationResponse;
return resp != null ? (Guid?)resp.OperationId : null;
}
but I’m getting the error as
“The Deployment Service cannot process the request because one or more validation checks failed.”
I’m using the local administrator account, it is also the deployment administrator,
ps: when I used similar code in a different way, the same error was popping but there the internal message was
“The current Active Directory user doesnt have read write permission on the reporting group …..”
I’m working through the same issue. I’ve found two articles that propose two different solutions:
This post reminds me of one of those links. In the first article, the author mentions that the deployment service (check IIS app pool) identity needs to have AD permission granted over the OU for the ReportingGroup.
To summarize the two articles:
If this fails to work, double check the links above, pray to God, then call MS Tech support (order is up to you). (Also, if you find something was missing, feel free to post or edit.)