Looking for ideas/thoughts on what might be the problem.
We have an Azure based application that makes calls to our on-premise CRM 2013 solution (IFD configured). Everything was communicating fine. We now need to add a web proxy into the mix. Now the same (working code) is no longer submitting data into CRM (see code / error below). We are able to login no problems using the browser just the application code is the issue.
ideas?
Exception thrown: 'System.InvalidOperationException' in microsoft.xrm.sdk.dll
Additional information: Metadata contains a reference that cannot be resolved: 'fsuat.mydomain.com/.../ls;action=signin&realm=urn:AppProxy:com&appRealm=6b8b0dde-841a-e511-80d1-005056802f76&returnUrl=https:%2F%2FMarketingtst.mydomain.com%2FXRMServices%2F2011%2FOrganization.svc%3Fwsdl&client-request-id=F6D82F48-E4D8-0000-D836-DAF6D8E4D001'.
Inner Exception:
{"CData elements not valid at top level of an XML document. Line 1, position 3."}
Here’s the block o’ code -> it’s borking on the last call
using (DiscoveryServiceProxy discoveryProxy =
GetProxy<IDiscoveryService, DiscoveryServiceProxy>(serviceManagement, authCredentials))
{
// Obtain organization information from the Discovery service.
if (discoveryProxy != null)
{
// Obtain information about the organizations that the system user belongs to.
OrganizationDetailCollection orgs = DiscoverOrganizations(discoveryProxy);
// Obtains the Web address (Uri) of the target organization.
organizationUri = FindOrganization(_organizationUniqueName,
orgs.ToArray()).Endpoints[EndpointType.OrganizationService];
}
}
//</snippetAuthenticateWithNoHelp1>
if (!String.IsNullOrWhiteSpace(organizationUri))
{
//<snippetAuthenticateWithNoHelp3>
IServiceManagement<IOrganizationService> orgServiceManagement =
ServiceConfigurationFactory.CreateManagement<IOrganizationService>(
new Uri(organizationUri));
*This post is locked for comments