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)

Issue while connecting to AX from console application

(0) ShareShare
ReportReport
Posted on by 640

Hi,

I've created a inbound service and added service reference in an console application.

I'm facing issue while connecting to AX from console application. Please find the attached screenshot for the issue.

,Error-description.PNG

Thanks & Regards,

Kedar

*This post is locked for comments

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

    Please press "View detail" to get more information about the exception.´

    Nevertheless it seems that you never provide any authentication details, therefore all requests will be rejected at unauthorized. You must register an application in Azure Active Directory and get appropriate tokens for authentication. It's explained in documentation and you can borrow some source code from GitHub.

  • Kedar Dande Profile Picture
    640 on at

    Hi Martin,

    Yes it's related to authentication, but application already registered on Azure Active Directory. Still I'm unable to achieve the desired result.

  • Martin Dráb Profile Picture
    239,122 Most Valuable Professional on at

    Your code doesn't provide the application ID you get by registering in AAD, doesn't the authorization token and so on. You must fix your code. I strongly recommend you look at the code I linked above.

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 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans