We are in the process of installing AX at my company.
I'm trying to JUST LOGIN to AX with an ASP.NET website using the following
code:
using Microsoft.Dynamics.BusinessConnectorNet;
public partial class _Default : System.Web.UI.Page
{ ....
public Axapta axaptaCOM;
protected void Button1_Click(object sender, EventArgs e)
{
try
{
object o = axaptaCOM = new Axapta();
axaptaCOM.Logon("", "", "", "");
axaptaCOM.Logoff();
}
catch(Exception i)
{
string str1 = i.Message;
}
}
} // end of partial class
I have referenced Microsoft.Dynamics.BusinessConnectorNet by using the
Solution Explorer/Add Reference trick and the code compiles well.
But, when I hit the axaptaCOM.Logon("", "", "", ""); line in my code there
is a pause and I get the "The page cannot be displayed" error on IE.
I'm running this from my localhost and AX is on a completely different server.
I can successfully login using essencially the same code but in a console
application.
Thanks so much for your help on this!
Steve
--
Steve Kershaw
Sr. Programmer/DBA