AL icon indicating copy to clipboard operation
AL copied to clipboard

VM Landing Page not working

Open reiniroosh opened this issue 9 years ago • 6 comments

The landing page in the VM has an error: Server Error in '/' Application.

Everything does seem to be set up correctly... I can open the NAV client and developer environment. But I can't figure out how to set up the launch.json, since the landing page supposedly will tell me how to configure it, so I can't get started with AL.

I tried restarting the VM, same result. I deleted and re-deployed a new VM image, same results.

reiniroosh avatar Oct 07 '17 21:10 reiniroosh

Same problem here.

Try the following in Launch.json:

{ "version": "0.2.0", "configurations": [ { "type": "al", "request": "publish", "name": "Local server", "server": "https://--put your vm-name here--.westeurope.cloudapp.azure.com/", "serverInstance": "NAV", "tenant": "", "authentication": "UserPassword", "startupObjectId": 22 } ] }

peterz84 avatar Oct 08 '17 00:10 peterz84

Thank you peterz84, that helped.

After changing the server to the https, I got the error about ssl being actively refused. I needed to install the certificate, but that's also supposed on the landing page. Maybe there's a better way... but... I copy the pfx from "Nav Container Helper" and then install it.

Then it gives me an error that I'm not authorized, which makes sense because I was still putting in authentication: "Windows" after putting in the UserPassword it downloaded symbols successfully!

So that is good. Now I'm trying to publish the extension and it errors with:

Success: The package is created.
Error: Chosen debug configuration has an unsupported attribute value `request`: 'publish'.

reiniroosh avatar Oct 08 '17 23:10 reiniroosh

Thank you, it worked.

reiniroosh avatar Oct 09 '17 17:10 reiniroosh

It should work now - I think this is caused by the country.txt file in the c:\demo folder ending up empty due to an error in the navcontainerhelper. The error should be fixed (and in the next version, the landing page will ignore an error like that), but if you add US to country.txt today, you should be fine.

In the upcoming october preview,. the landing page has been moved to the VM instead of being inside the container, this means that the landing page will work even if the container is stopped. The idea is to be able to extend the landing page with information on which containers are running and their health - and potentially do more cool stuff there.

freddydk avatar Oct 10 '17 06:10 freddydk

Adding US to the country.txt indeed works for the landing page.

peterz84 avatar Oct 10 '17 07:10 peterz84