ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Uri serviceUri = new Uri(“ = CredentialCache.DefaultNetworkCredentials Protected void button1_Click(object sender, EventArgs e)ĬlientCredentials credentials = new ClientCredentials() Ĭ = “*************” Ĭ = “**************” Protected void Page_Load(object sender, EventArgs e) OrganizationServiceProxy serviceProxy So when I opened CRM in browser (firefox in this case), I just clicked on the padlock to view the certificate information and then click on More Information (shown in screenshots below). Thought something changed in the service URL and hence copied and pasted the URL in the browser. ![]() The same code was working in Dynamics CRM version 8.2 It was failing while trying to create the proxy. Var proxy = new OrganizationServiceProxy(new Uri(“ ”) , Sample code belowĬlientCredentials clientCredentials = new ClientCredentials() Ĭ = “” Ĭ = “” ![]() ![]() Was curious to know and hence copied the portion of code which connects to CRM from batch job, into a separate console application. Recently one of our customers upgraded to Version 9.0 from D365 8.2 and then all of a sudden all the console jobs which used to connect to Dynamics CRM and were scheduled as batch jobs started failing.Ĭhecking the event viewer we found out the following error – “Metadata contains a reference that cannot be resolved”. Follow Debajit’s Power Apps & Dynamics 365 Blog on
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |