Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Adxstudio 7x version : Cannot connect to CRM online

(0) ShareShare
ReportReport
Posted on by 160

Hi Portal experts,

We are in the process of migrating our CRM onPremise 2015 to CRM online. One of our integrations include Adxstudio Portals. We already have portal site running live for CRM onpremise.

I am trying to connect to CRM online using Adxstudio 7.0.0086 version. Whenever I enter the CRM Online organisation url in the Adxstudio Portals config page, it gives me this following error. 

  • The Organization Service URL is invalid. Metadata contains a reference that cannot be resolved: 'xxxxxxx.api.crm.dynamics.com/.../Organization.svc;sdkversion=6.1'. The underlying connection was closed: An unexpected error occurred on a send. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. An existing connection was forcibly closed by the remote host

3288.image1.PNG

Any clue what might be the issue? 


I did some research and have upgraded the .net framework from 4.5 to 4.6.2 but still no luck. Is it to do with the Tsl 1.2 security protocol? I have added the below code as well in the setupcontroller file 

  • ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

Please help. Thanks in advance!

Regards,
SdDev

*This post is locked for comments

  • Verified answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    Open Advanced Find and select on the Web Pages records

    Add the column "Is Root".. than you will see two records representing your web page, open the Non-root and edit the "Copy HTML" field

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    In CRM, on a webpage record, there is Copy(HTML) and Summary (HTML) fields were you make the changes right? Not sure what is the root and content record?

    Yes, I have updated the CRM with new XRM portals solutions. I had only removed some solutions. As some of the solutions have lot of dependencies so thought it would be tedious to remove them one by one.
    If I do not remove the old solutions will it impact the functionalities of new portal?

    While trying to debug from the source code, I captured the following error in the developer console.
    Insight_5F00_ContentEditor2.png


    Maybe I will post this issue as a separate question in the community as well.

    Thanks so much!
    SdDev

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    I hate those error messages from the Portals that doesn't help us at all =(

    Did you try editing the page directly through the Web Page record in CRM ? remember that the Web Page contains 2 record, one "root" and the other with the "content", you must edit the content

    If you get the same error, it could be some CRM issue, Plugin / Workflow.. did you update your CRM solutions as according to the solutions in GIT Hub as well ? or just the source code ?

    If it doesn't get any error, it could be something in your Portal source code, I would suggest you to debug to try see the real error message

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    Hi Oliver,

    I have been able to merge the old code with XRM portals code and the basic functionalities are working fine. 

    But there is a problem in using the inline content editor from the portals front end. 

    I am able to edit any page and make my changes but whenever I save the page, I get the following error. 

    Insight_5F00_ContentEditor.png

    Any idea about this? Not sure what went wrong over here.

    Many thanks,
    SdDev

  • oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    Good it got sorted out, do you mind marking the answer as a verified answer please ?

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    I used Github XRM portals source code. I did get some issues at the start during compilation. I had to resolve them and now I am able to connect to CRM Online.

    Thanks,

    SdDev

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    alright, will use the GitHub one and see how it goes.

    Thanks for your valuable help!

  • Verified answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    Use the one from GitHub that has some fixes from the community

    actually I haven't done this merge before

  • SD_Dev Profile Picture
    SD_Dev 160 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    No it didn't, still gave me the same error.

    I was hoping if I could getting it working using the existing version instead of upgrading the AdxStudio Portal version as it is just a CRM connection issue.

    On the other hand, which source code should I use in order to start with merging the code?

    1. www.microsoft.com/.../details.aspx OR,

    2. github.com/.../xRM-Portals-Community-Edition

    I have lot of UI changes as well so that is going to be a bit of work. Anything else I need to be more careful about? Have you faced any challenges while doing the code merge?

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Adxstudio 7x version : Cannot connect to CRM online

    Just by updating the core assemblies.. did the connection work ?

    I think that's pretty much it what you can try, if you want to keep using your current version

    In case you still can't connect, try getting the source code for the community portals, than try comparing your current login code to the community one

    additionally, in the future I think you might face some issues, as you are moving for CRM online, Microsoft will be doing changes into the platform, that your current ADX might stop working one day.. that's just the reason that I recommend going also for the online portals

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans