Dynamics AX 2009 workflow in Ep

Hi All,

while submiting workflow in ax 2009 EP getting an warning message

An unexpected error has occurred.

No .NET Business Connector session could be found.

Microsoft.Dynamics.Framework.BusinessConnector.Session.Exceptions.NoKernelSessionException

at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsSession.get_AxaptaAdapter()

at Microsoft.Dynamics.Framework.Data.Ax.DataSetRunHelper.CreateDataSetRun(ISession session)

at Microsoft.Dynamics.Framework.Data.Ax.DataSetRunHelper.Init(ISession session, IAxaptaRecordAdapter externRecord)

Solution : When creating a new workflow for Microsoft Dynamics AX, one of the classes you implement is used to submit a document to workflow.

follow the belove link.

http://msdn.microsoft.com/en-us/library/ee677503(v=ax.50).aspx

public static void main(Args _args)

{

if (_args.menuItemName() == menuitemactionstr(SalesCreditApproval))

{///

//

}

else

{

// Workflow is starting from Enterprise Portal}

}