Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 101540

Forum Post: Getting error as Failed to initialize Business connector

$
0
0
Hi, I am getting error as Failed to initialize Business connector while connecting to Dynamics AX 2012. Below is the code i used. I am using trial version in azure. Awaiting for your prompt reply. // Create an instance of the Axapta class. Axapta DynAx = new Axapta(); // Add the proxy user. // Replace the ProxyUserID and password parameters with the // proxy user name and password that you specified // in the Business Connector Proxy. System.Net.NetworkCredential nc = new System.Net.NetworkCredential(@"CONTOSO\proxy.user", "P@$$w0rd"); string strUserName = @"CONTOSO\proxy.user"; // Test the connection to the .NET Business Connector. try { DynAx.LogonAs(strUserName.Trim(), "", nc, "", "", "", ""); MessageBox.Show("Success"); DynAx.Logoff(); MessageBox.Show("Logoff completed."); } catch (Exception ex) { MessageBox.Show(ex.ToString()); MessageBox.Show(ex.Message); }

Viewing all articles
Browse latest Browse all 101540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>