Hi
I want to know something.
Im able to perform several connections on AX2009 using a Parallel.For from C# using the same credentials, that is ok, the connections are done and no error are throw.
But.
when i call some AX class using business connector on this the Parallel loop, the server throws messag like “The server terminated the session.” What Im doing whrong? If Im able to have several connections, why Im not able to execute the method ?
Parallel.For(0, 2, (i, state) =>
{
// here the logon
NetworkCredential nc = new System.Net.NetworkCredential("user", "passwd", "Domain");
this.axp.LogonAs("user", "", nc, "", "", "", "");
// all logons are ok no error raise.
// here is the issue happens
vara result = axp.CallStaticClassMethod("Myclass", "MystaticMethodName", parameter);
// for only one execution the result is fine and ok. But for more than one i get messages like
// "The server terminated the session."
}