Error while downloading symbols

Hi All,

Its little urgent.

I have Hosted a sandbox locally. VS Code Installed. but while downloading symbols getting below error:

An error occurred while sending the request.
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
The remote certificate is invalid according to the validation procedure.

Thumbprint is :
Self Signed Certificate Thumbprint DF30D1C34A8367F95F3ED36AAA3F726ECBA221CF

what could be the reason? where can i see this selfsigned certificate?

Thanks in Advance.

OK… if it is urgent, why dont you then tell more about your setup… Your question is like my car wont start what is wrong?

SO How did you create your hosted sandbox?

How does your two json-files look like?

How did you try to download the symbols

Can you compile the hello world.al ?

The more information you provide the better, and faster you can get some help.

Hi Nikitha,

You can see the information about the certificate, including which url you should use, in Powershell after it has finished creating the container.

I assume you are using containers and NavContainerHelper to host your sandbox locally?

Then you can use this to see the information again.

Get-NavContainerDebugInfo -containerName Sandbox -ExcludeDockerInfo -ExcludeEnvVars

Here look for the certificate *.cer line. You need to download the certificate and install it locally also. But why create with certificate if running locally?

You need to tell more about your setup and error as suggested by Palle.

Hello,

Thanks for reply.

Let me clear my scenario.
we have a client with BC on Cloud. They have online sandbox.
we did not want to disturb there sandbox environment so we desided to Host their sandbox locally. Online Sandbox gives me that option.
I Hosted sandbox locally using container.

Self Signed Certificate Thumbprint DF30D1C34A8367F95F3ED36AAA3F726ECBA221CF
Container IP Address: 172.19.166.14
Container Hostname : LocalSB
Container Dns Name : LocaiSB
Web Client : https://LocalSB/NAV/
Dev. Server : https://LocalSB
Dev. ServerInstance : NAV

Files:
LocalSB:8080/al-2.0.56865.vsix
LocalSB:8080/certificate.cer

I installed VS Code, after installing AL Language, used above server and serverInstance details for further steps. after this I got below error

An error occurred while sending the request.
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
The remote certificate is invalid according to the validation procedure.

I do not have json file details now.

By reading the error I thought certificate is not valid.

But am I on correct way??
I think we can not do development and customization on Locally Hosted sandbox for OnCloud Business Central.

hello world file was not compiled, giving error.

The certificate shoulde also be available at https://LocalSB

But you really dont need the certificate.

How does your New-Navcontainer look like or your Docker run???

and again… We need to see your json-files they are created if you start VScode and press Ctrl+Shift+P and chooses AL-GO!

Certificate was there, i had checked on browser.

Navcontainer was like-

New-NavContainer -containerName LocalSB -accept_eula -alwaysPull -assignPremiumPlan -auth NavUserPassword -doNotExportObjectsToText -enableSymbolLoading -imageName microsoft/bcsandbox:w1 -includeCSide -memoryLimit 3G -shortcuts Desktop -updateHosts -useSSL

json file details not available.

Remove the -useSSL parameter You do not need it locally.

THERE ARE ALLWAYS JSON FILES

  1. start VSCode

  2. Create a new empty file

  3. Press CTRL+SHIFT+P

  4. Select >AL-GO! and prest enter two times

  5. Look to the left and let us see the LAUNCH.JSON file!

IF the json file is not there… then your installation is WRONG!!

Without a json-file you will never be able to generate/download symbols.

Because of error I uninstall AL Language, delete AL folder (D:\Nikitha\AL ) where my files to be saved, then I connected to available Online SandBox.

So I do not have json files details.

You are clearly doing something wrong.

You can do nothing without the Launch.Json file and it is generated automatically. Regardless of folders… Follow my steps above and the file gets generated together with the helloworld.al file… I have trained 100+ people in this…so I really do know.