As mentioned above, I ran it in a Console app and it worked.
using Microsoft.Dynamics.BusinessConnectorNet;
namespace ConsoleApplication1 { public class Program { public static void Main(string[] args) { Axapta ax = new Axapta(); ax.LogonAs("User1", "Globe", new NetworkCredential("User1", "pwd", "Globe"), default(string), default(string), "A6BuildTestAos:6004", default(string)); ax.Logoff(); } } }
As mentioned above, I ran it in a Console app and it worked.
using Microsoft. Dynamics. BusinessConnect orNet;
namespace ConsoleApplication1
ax. LogonAs( "User1" , "Globe", new NetworkCredenti al("User1" , "pwd", "Globe"), default(string), default(string), "A6BuildTestAos :6004", default(string));
ax. Logoff( );
{
public class Program
{
public static void Main(string[] args)
{
Axapta ax = new Axapta();
}
}
}