web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

MSBuild error related to AX Proxy Classes

(0) ShareShare
ReportReport
Posted on by 5

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()

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,364 Most Valuable Professional on at

    Is it possible to connect to given AOS from the build server? Does the build service account have permissions to do it? Does the configuration exist on the build server?

    You may want connect to the build using the build service account (which may require allowing interactive login for this account) and use the same parameters for connection tp AOS to test how it behaves.

  • RickyG Profile Picture
    5 on at

    Martin,

    Your post got me thinking outside the box I had been stuck in, thank you.

    I resolved the error by first adding the TFS service account to AX as a user on my AOS box. That got me half way there, once I assigned it the Business Connector role, the build error disappeared.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans