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
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.
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
FYI
Sohail Ahmed
2,689
Super User 2025 Season 2
Sumit Singh
2,631
Jeffrey Bulanadi
2,212