Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to connect dynamics 365 version 9.0 online with aspx

(0) ShareShare
ReportReport
Posted on by 75

Hi,

How to connect dynamics 365 version 9.0 online with aspx 

it returns server proxy null 

IMG_2D00_20180323_2D00_WA0002.jpg

*This post is locked for comments

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: How to connect dynamics 365 version 9.0 online with aspx

    Hi Rajesh,

    it is important for Dynamics 365 V9.X, set Security Protocol as TLS12 while making connection from any external application.

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

    Check this article:

    [View:https://arunpotti.wordpress.com/2018/02/03/step-by-step-to-connect-dynamics-365-crm-online-v9-x-using-c-console-application/]

    Mark this answer verified If helpful.

    Regards

    Arpit

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: How to connect dynamics 365 version 9.0 online with aspx

    Hi Rajesh ,

    Here is sample code for console , I have written  see my post here -Its working fine -

    community.dynamics.com/.../273478

    goutamdascrm.wordpress.com/.../connecting-dynamics-365-online-using-console-application-c

    Hope this helps.

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,205 on at
    RE: How to connect dynamics 365 version 9.0 online with aspx

    Sorry wrong code

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to connect dynamics 365 version 9.0 online with aspx

    Hello,

    Use this code

    public IOrganizationService GetOrgService()

           {

               ClientCredentials cre = new ClientCredentials();

               cre.UserName.UserName = "username";

               cre.UserName.Password = "password";

               Uri serviceUri = new Uri("orgnizationname.api.crm.dynamics.com/.../Organization.svc");

               OrganizationServiceProxy proxy = new OrganizationServiceProxy(serviceUri, null, cre, null);

               proxy.EnableProxyTypes();

               IOrganizationService service = (IOrganizationService)proxy;

               return service;

           }

    and Remmeber that

    Your .netfrmawork should be more the 4.6 and SDKs v. 8

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans