RE: CRM connection timeout
Hi,
//using Microsoft.Xrm.Tooling.Connector;
using Microsoft.PowerPlatform.Dataverse.Client;
using System;
using System.Net;
public partial class c2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
ServiceClient crmServiceClient = null;
string sResult = "";
string connectionString = "AuthType=OAuth;Username = info@xxxx.com;Password=xxxx;Url=xxxx.crm4.dynamics.com;AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;RedirectUri=app:/.../58145B91-0C36-4500-8554-080854F2AC97;LoginPrompt=Never";
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
// var service = new CrmServiceClient(connectionString);
crmServiceClient = new ServiceClient(connectionString);
if (crmServiceClient.IsReady)
{
sResult = "YES";
}
else
{
sResult = "NO";
}
}
}