Dynamics AX 2009 sp1 payroll error

I have error when running payroll in dynamics ax 2009
Dynamics .NET Business Connector 5.0
Unable to connect to an Application Object Server. A server name may not be specified correctly in the client configuration, or the server specified may not be available.

I have checked Microsoft Dynamics AX 2009 Configuration every thing is ok. Connection of Bussiness Connector → Server : MYCOMPUTERNAME, Instance Name : DynamicsAx 1, TCP/IP : 2712

Please help me. Sorry for my english.
Thank in advance.
Tuan Hoang Anh

Hi Tuan,

I am not familiar with payroll module. But looking at error message, it looks like it is a Business Connector (BC) issue. Can you try to test BC as mentioned in this article - http://www.axaptapedia.com/.NET_Integration?

BTW your English is very good. So don’t be sorry!

Regards,

Thanks very much for help me.

Here is my Main

static void Main(string[] args)
{
try
{
Axapta axapta = new Axapta();
axapta.Logon("", “”, “”, “”);
Console.WriteLine(“1-It works”);
axapta.Logoff();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}

try
{
System.Net.NetworkCredential credential = new System.Net.NetworkCredential(“bcproxy”, “Xb908eDE”, “erp.local”);
Axapta axapta = new Axapta();
axapta.LogonAs(“bcproxy”, “erp.local”, credential, “”, “”, “”, “”);
Console.WriteLine(“2-It works”);
axapta.Logoff();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
Console.ReadKey();

  • I have added alias: bcproxy, domain erp.local in Setup->Security ->System service account-> Bussiness connector proxy

  • On the first, I had error in “2-it works”

Microsoft.Dynamics.BusinessConnectorNet.LogonFailedException: Logon error : You
are not a recognized user of Microsoft Dynamics AX. Contact your system administ
rator for help.

So, I add bcproxy to Users of Dynamics AX (Administrator → Common Forms → Users), and then 1,2 works well.

But, the error of payroll isn’t fixed.

Please help me.

Thanks you very much. Sorry my English is not well.

Hi,

Two things -

  • First set of try/catch is meant for testing from Visual Studio application. Second set is meant to be tried from web based application. Therefore there is no need to try both at one go.
  • Please follow instructions mentioned here - http://msdn.microsoft.com/en-us/library/bb986590.aspx

Regards,

Thanks for your help.

I have fixed the problem in https://community.dynamics.com/forums/p/16483/34979.aspx#34979

I have added bcproxy and user AOT is running under to Dynamics AX Users, so the problem is fixed.

Thanks for your help

Tuan Hoang Anh