Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I tried by passing all the related url for example:trasfer.crm8.dynamics.com:443 and 444 ,8085 in console application, i am getting the error metadata contains a reference that cannot be resolved and not able to connect to the online ms crm, please any body suggest me.
share your code
Check below post. It may help you:
Its working for the onpremise ms crm ,but not for ms crm online version.
Please refer below code its working for me on both type of instance:
public static IOrganizationService service;
public void MethodName()
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Microsoft.Xrm.Client.CrmConnection connection = CrmConnection.Parse(GetServiceConfiguration());
service = new OrganizationService(connection);
//Your code here
public static String GetServiceConfiguration()
int count = ConfigurationManager.ConnectionStrings.Count;
List<KeyValuePair<String, String>> filteredConnectionStrings =
new List<KeyValuePair<String, String>>();
for (int a = 0; a < count; a++)
(new KeyValuePair<string, string>
if (filteredConnectionStrings.Count == 0)
Console.WriteLine("An app.config file containing at least one valid Microsoft Dynamics CRM " +
"connection string configuration must exist in the run-time folder.");
Console.WriteLine("\nThere are several commented out example connection strings in " +
"the provided app.config file. Uncomment one of them and modify the string according " +
"to your Microsoft Dynamics CRM installation. Then re-run the sample.");
if (filteredConnectionStrings.Count == 1)
private static Boolean isValidConnectionString(String connectionString)
if (connectionString.Contains("Url=") || connectionString.Contains("Server=") || connectionString.Contains("ServiceUri="))
// <add name= "Xrm" connectionString = "Url=crmdomainname.crm11.dynamics.com; Username=yourusername; Password=Userpassword; authtype=Office365" />
Actually, i tried by connecting to online ms crm it is connecting by using a console application in one system but not in another system,please any body suggest me.
You could download my sample application from my following github page and test and see if this works for you.
This sample project has all the libraries referenced
Business Applications communities