Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error after upgrade to Dynamics 365

Posted on by 1,037

i'm getting the below error while trying to connect from C# to dynamics crm after upgrading from Dynamics crm 2016 update 1 to Dynamics 365

Code:

new OrganizationServiceProxy(new Uri(organizationUrl), null, credentials, credentials);

Error:

{"There is an error in XML document (1, 1298)."}

Any idea ?

*This post is locked for comments

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Error after upgrade to Dynamics 365

    The code should still work. One thing to check is that you are using the 8.2 versions of the CRM assemblies

  • joman Profile Picture
    joman 617 on at
    RE: Error after upgrade to Dynamics 365

    Connection to CRM has changed:

    using Microsoft.Xrm.Tooling.Connector;
    using Microsoft.Xrm.Sdk;
    
    CrmServiceClient conn = new CrmServiceClient("Url=http(s)://crm.server.com/Org");
     IOrganizationService service = (IOrganizationService)conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;
    

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans