Axapta Business Connector Logonas - Microsoft.Dynamics.BusinessConnectorNet.LogonSystemChangedException

Hi

I’m using an asp.net web application (.aspx) to update Dynamics Ax (Axapta) information through Business Connector.

I have deployed my aspx application DLL into two different Dynamics environment s (one for DEV and another one for LIVE), (two virtual directories under same IIS application node)

If my business connector connects to one instance, its doesn’t connect to other & vice versa…

I’m connecting to Axapta as given below

System.Net.NetworkCredential networkCredential = new System.Net.NetworkCredential();

networkCredential.UserName = “Active Dir Account” (Also referred in Ax >> Administration >> Setup >> Security >> Business connector Proxy account field)
networkCredential.Password = “Password”;
networkCredential.Domain = “Fully qualified domain name”;

dax.LogonAs(“Active Dir Account”, “Fully qualified domain name”, networkCredential, “Current Company Code”, “”, AOSInstance@AOSServer:Port, “”);

I would appreciate if someone assist me on this

Thanks

Jaffar

[:)] Its resolved.

I have moved one of the virtual directories into separate IIS site (which runs in different app pool).

It seems the Business connector DLL haven’t unload its connection when both instances(DEV & PILOT ) run under same IIS site (application).