I am trying to start my Dynamics NAV Service Tier and I get the message above. This error is listed in the system event log and can be read using the Event Viewer.
When you see and error message that looks like this:
HTTP could not register URL http://+:7047/DynamicsNAV70/. Your process does not have access rights to this namespace
Then you have to use the netsh command to remove the wrong entries and add the new correct entries.
First, you get a list of existing entries in af file by running this command in a command line with administrative privileges.
netsh http show urlacl > acl.txt
Then you open the file and look for the entry blocking your port. Use the URL listed in the file to remove the entry using this command:
netsh http delete urlacl url=https://+:7048/DynamicsNAV100/
Finally, you can add the correct URL. This URL is part of the error message in the Event Viewer and can be copied from there.
netsh http add urlacl url=http://+:7047/DynamicsNAV70 user="NT AUTHORITY\NETWORK SERVICE" listen=yes
netsh http add urlacl url=http://+:7048/DynamicsNAV70/OData user="NT AUTHORITY\NETWORK SERVICE" listen=yes
When I tried to start the NAS on Dynamics NAV 2015 for the first time, I ran into this problem in the event log:
Server instance: DynamicsNAV80
The Microsoft Dynamics NAV Application Server session for tenant 'default' has permanently failed and will not be restarted. Reason: Type: Microsoft.Dynamics.Nav.Types.NavDatabasePasswordException
Message: The user ID and password are not valid. Please try again.
at Microsoft.Dynamics.Nav.Runtime.NavSession.Open(Boolean useUserPersonalization, Byte licenseToUse)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
It turned out that I had to change the user on my NAV service to something else the default Network Service account.