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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Authenticate Business Central/NAV Users with Azure Active Directory Error

(0) ShareShare
ReportReport
Posted on by

This time I want to discuss an error message that appeared when you try to sign in to NAV or BC with Office 365 Account (authenticate Business Central/NAV Users with Azure Active Directory)

 SYMPTOM:

After making the Configuration to authenticate Business Central/NAV Users with Azure Active Directory the users tried to log in but they faced the error message ‘something went wrong

And when checking the event viewer there are two recurring errors

  • The management service endpoint is not available. Make sure that the ManagementServicesPort setting is set correctly in the web.config file of the Dynamics NAV Web Server instance.

 

  • Error accessing Website

Raw Url:

Url:

Type: System.ServiceModel.EndpointNotFoundException

Message: Could not connect to net.tcp://localhost:7045/DynamicsNAV110/StartupService. The connection attempt lasted for a time span of 00:00:04.0739054. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:7045.

pastedimage1660035260644v1.png

pastedimage1660035277952v2.png

RCA:

This issue is due to ManagementServicesPort being missing in NavSettings.json

Resolution:

Add ManagementServicesPort by opening NavSettings.json and adding the below parameter

 

"ManagementServicesPort":  "7055",

Or by using PS:

 

Set-NAVWebServerInstanceConfiguration DynamicsNAV110 -KeyName 'ManagementServicesPort' -KeyValue '7055'

 

 Please note: the port is different from one environment to another so please take care that  you are using the correct port

I have the same question (0)
  • Verified answer
    Microsoft Dynamics 365 Business Central Profile Picture
    on at
    RE: Authenticate Business Central/NAV Users with Azure Active Directory Error

    FYI

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,689 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,631

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,212

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans