Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
i have a "little" Problem. There are running a NAV2018 Server in a Hyper V VM. There are running two Databases/two instances.
Webclient / RTC all works fine, now i'm trying publish some extension / dowload AL Symbols.
The Demo NAV Instance is startet with Credential Type UserName. But when in VS Code i try Download Symbols, it says me:
[2018-07-09 12:54:28.85] Sending request to nav18test/.../packages;appName=Application&versionText=11.0.22292.0
[2018-07-09 12:54:28.85] Sending request to nav18test/.../packages;appName=System&versionText=11.0.12925.0
[2018-07-09 12:54:28.85] The request for path /DynamicsNav110/dev/packages?publisher=Microsoft&appName=Application&versionText=11.0.22292.0 failed with code Unauthorized. Reason: Unauthorized
[2018-07-09 12:54:28.85] The request for path /DynamicsNav110/dev/packages?publisher=Microsoft&appName=System&versionText=11.0.12925.0 failed with code Unauthorized. Reason: Unauthorized
The authentication has been cancelled.
Then i tried Start the Instance with Credentials Windows, and Downloading Symbols are fine:
[2018-07-09 10:58:17.13] Sending request to nav18test/.../packages;appName=Application&versionText=18.104.22.168
[2018-07-09 10:58:17.13] Sending request to nav18test/.../packages;appName=System&versionText=22.214.171.124
[2018-07-09 10:58:17.64] All reference symbols have been downloaded.
So. Where is the Differency? Or how i can analyse whats the problem? On Server i can't see any logs that say me that was an unauthorised log attempt. Or forget i a Config "screw" ? What can i try? Thanks Regards
Did you try by clearing your credential cache once
>AL: Clear credentials cache
next time it will ask for credentials and provide credentials and try
Yes. Each try i clear credentials cache first.
check "authentication": "Windows" configuration on launch.json , it must be UserName in your case if the instance Credential Type UserName
This is my launch.json:
"name": "Your own server",
"authentication" must be any one of the following credential type
Windows, UserName, NavUserPassword, AccessControlService. based on your Instance Configuration. Your Instance Credential Type and launch.json authentication should match
I am using UserPassword without any issue.
Yes, in json file it must be either Windows, UserPassword, AAD and in NAV Instance it must be either Windows, UserName, NavUserPassword, AccessControlService.
i faced the same issue and i tried with windows and again changed to NavUserPassword, restarted the instance it worked for me.
dono the reason behind this.
Think i have the Solution.
I Started a NAV Instance with Credentials NavUserPassword (After create user in NAV with role Super) , then in Visual Studio Code, Authentication UserName, and it works, Symbols can be download.
So it seems that i can't auth in Visual Studio Code, when the NAV Instance started with Credentials UserName, because in VS Code only i can put AAD, Windows and UserPassword. And UserPassword it's equivalent to NavUserPassword, and i thinked that the equivalent was Username.
Business Applications communities