Hi,
How to connect dynamics 365 version 9.0 online with aspx
it returns server proxy null
*This post is locked for comments
Hi,
How to connect dynamics 365 version 9.0 online with aspx
it returns server proxy null
*This post is locked for comments
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
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.
Sorry wrong code
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
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,307
Most Valuable Professional
nmaenpaa
101,156