Hello,
I develop and large solution containing many projects. One project contains proxy classes for interfacing with Dynamics AX (We are on AX 2012 R3). My solution builds just fine if I use the Solution Explorer window and simply right-click the solution and build it. No problems there.
When using the Team Explorer window, and Queuing up a new build is where I have the following error (see bottom of post).
Further information:
I am opening Visual Studio 2010 using a specific configuration using the /axconfig switch. This is working as it should because I can see the AOT from within the Application Explorer.
If anyone has insight into this issue, it would be GREATLY appreciated!!!
C:\Program Files (x86)\MSBuild\Microsoft\DynamicsTools\Microsoft.Dynamics.Framework.Design.InteractionProject.targets (76): The "GenerateProxies" task failed unexpectedly.
Microsoft.Dynamics.Framework.BusinessConnector.Session.Exceptions.SessionException: Unable to connect to the AOS specified in the Microsoft Dynamics AX Client Configuration. The configuration could be missing, invalid, or the AOS is not running. To connect to the AOS, check the network connection between the client and the AOS, verify that a valid configuration exists, and that the AOS service is running on the server. ---> Microsoft.Dynamics.Framework.BusinessConnector.Session.Exceptions.NoKernelSessionException: No .NET Business Connector session could be found.
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsSession.get_AxaptaAdapter()
at Microsoft.Dynamics.Framework.BusinessConnector.AdapterWrapper.CreateBusinessConnectorSession()
at Microsoft.Dynamics.Framework.BusinessConnector.AdapterWrapper.get_Adapter()
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Framework.BusinessConnector.AdapterWrapper.get_Adapter()
at Microsoft.Dynamics.Framework.BusinessConnector.OperationExecuter.Execute[T](Collection`1 messages, Func`1 nodeAction)
at Microsoft.Dynamics.Framework.Design.BuildTasks.ProxyGeneratorFacade.Generate(IEnumerable`1 tables, IEnumerable`1 classes, IEnumerable`1 enums, String rootNamespace, String outputDirectory, ProxyLanguage language, Boolean forceRefresh)
at Microsoft.Dynamics.Framework.Design.BuildTasks.GenerateProxies.CallGenerateProxies(ProxyGeneratorParameters parameters, ProxyGenerationCache cacheManager)
at Microsoft.Dynamics.Framework.Design.BuildTasks.GenerateProxies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()