CRM connection timeout – Microsoft Dynamics CRM Forum Community Forum

0
39
Forum Post: Change the Filter On option on Opportunity Associated View for Account form


Hi all

I’m trying to switch to OAuth from a c# website connection to CRM online.

I see a constant timeout when trying to connect.
It seems OK in a console app though.

My test script is;

using Microsoft.Xrm.Tooling.Connector;
using System;
using System.Net;


public partial class c2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string sResult = "";
        string connectionString = "AuthType=OAuth;Username = [email protected];Password=xxxx;Url=https://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);

        if (service.IsReady)
        {
            sResult = "YES";
        }
        else
        {
            sResult = "NO";
        }
        
    }
}

HELP PLEASE!



Source link

Leave a reply

Please enter your comment!
Please enter your name here