web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Host MS Dynamic CRM Integrated Asp .Net Web Application in Azure API

(0) ShareShare
ReportReport
Posted on by 10

Hello All of You,

My Name is Vijay Dantani.

I am using "AuthType = OAuth " authentication to connect dynamics CRM online in .net application and I have hosed webform application in azure API App. But after deploying the app it is not connecting to the CRM.

Authentication Code : 

public string GetCRMService()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

string url = "https://test_abcd123.api.crm8.dynamics.com/XRMServices/2011/Organization.svc";

string userName = "test@test_abcd.onmicrosoft.com";

string password = "Test@12345;

string conn = $@"
Url = {url};
AuthType = OAuth;
UserName = {userName};
Password = {password};
AppId = 51f81489-12ee-4a9e-aaae-a2591f45987d;
RedirectUri = app://58145B91-0C36-4500-8554-080854F2AC97;
LoginPrompt=Auto;
RequireNewInstance = True";
return conn;
}


Please give me a solution.

I have the same question (0)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Subra Profile Picture

Subra 136

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 95 Super User 2026 Season 1

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 85 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans