Session log on for Microsoft Dynamics failed.
Dynamics Adapter LogonAs failed.
Microsoft.Dynamics.Framework.BusinessConnector.Session.Exceptions.FatalSessionException
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsSession.HandleException(String message, Exception exception, HandleExceptionCallback callback)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsBase.HandleExceptionInternal(String message, Exception e)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsAdapter.LogonAs(String user, String domain, NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsAdapter.Microsoft.Dynamics.Framework.BusinessConnector.Adapter.IAxaptaAdapter.LogonAs(String user, String domain, NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.Framework.Workflow.BusinessConnector.WorkflowSession.OnLogon(IAxaptaAdapter axaptaAdapter)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsSession.Init(ICacheContext context)
Microsoft.Dynamics.BusinessConnectorNet.LogonFailedException
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(BC_PROXY_ACCOUNT_INFO* pBCProxyAccountInfo, String company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonUsingBCProxyAccount(_SEC_WINNT_AUTH_IDENTITY_W* pImpersonatedUserAccount, NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonAs(String user, String domain, NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsAdapter.LogonAs(String user, String domain, NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration)
Workflow instance: 9b9f2564-0435-4181-93d4-1f2ffc01b228 was terminated for the following reason: No .NET Business Connector session could be found..
Well, this error pissed of me very badly. I was using win7 and I have used as .net business connector proxy account as my login account to the system. I have done all the followings to get my work flow executed.
1.Adding bc proxy account in system service account form in Ax.
2.Created a new bc configuration using ax client configuration utility.
3.Application pool has configured to run with bc proxy account.
4.Web config file in the workflow folder under ax, is modified by specifying the business connector configuration name for Ax.
5.BC proxy account has db creator role in the MS SQL 2008.
6.BC proxy has been added under Performance monitor group in local system.
But still error continues. Later I realized that my pc, which belongs to my office domain, was not in my office network. Then, I connected my pc over VPN to my office network and workflow started executing perfectly.
Event viewer:
Microsoft Dynamics AX Business Connector Session 5.
Dynamics .NET Business Connector has been started.
System Information:
PID: 6640
Component: C:\windows\assembly\GAC_32\Microsoft.Dynamics.BusinessConnectorNet\5.0.0.0__31bf3856ad364e35\Microsoft.Dynamics.BusinessConnectorNet.dll
Registration: .Net
Build number: 1500.4570
Configuration: AxContosoTransBC
System directory: C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\
Application: -
Database: -
AOS:PAUL011-****
X++ debugging: Disabled
No comments:
Post a Comment