Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Newbe question: Why can't I logon to AX using ASP.NET VS 05?

2 views
Skip to first unread message

Steve Kershaw

unread,
Jun 18, 2008, 4:45:00 PM6/18/08
to
Hi I appreciate any help you can give me.

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

daniel intelzon

unread,
Jun 30, 2008, 3:55:01 AM6/30/08
to
Try as below sample,
Axapta.Logon("","","server(or IP):port","");
Axapta.Logon("","","192.168.0.5:2715","");
By the way, please reset your IIS every time you reload the license file.
Good luck!
0 new messages