Describe the bug
When publishing an app from VSCode, the final step to launch the startup page is failing with this message:
Could not open the specified startup page. Please check that the server configuration key PublicWebBaseUrl has been properly set.
To Reproduce
Steps and to reproduce the behavior:
json
{
"version": "0.2.0",
"configurations": [
{
"type": "al",
"request": "launch",
"name": "My Dev Server",
"server": "http://xxx.xxx.xxx.xxx",
"serverInstance": "serverinstance",
"port": 9044,
"authentication": "Windows",
"startupObjectType": "Page",
"startupObjectId": 31,
"schemaUpdateMode": "Synchronize"
}
]
}
Debug Console
Powershell
[2019-04-29 15:20:38.24] Publishing AL application using launch configuration '<ServerName> <ServerInstance>'.
[2019-04-29 15:20:38.31] Targeting server '<ServerName>' and server instance '<ServerInstance>'.
[2019-04-29 15:20:38.31] Using Windows authentication.
[2019-04-29 15:20:38.33] Sending request to http://<ServerInstance>:<ServerPort>/<ServerInstance>/dev/apps?SchemaUpdateMode=synchronize
[2019-04-29 15:20:39.99] Success: The package 'xxxxx_1.0.0.0.app' has been published to the server.
[2019-04-29 15:20:40.25] Error: Could not open the specified startup page. Please check that the server configuration key PublicWebBaseUrl has been properly set.
Expected behavior
In the Success response After publishing the app, BC should return something like
Powershell
{
"WebEndpoint": "http://<ServerInstance>/<ServerInstance>/WebClient"
}
When I trace the traffic with Fiddler, I see no such a response.
Then of course VSCode outputs an error like this:
Powershell
[2019-04-29 15:20:40.25] Error: Could not open the specified startup page. Please check that the server configuration key PublicWebBaseUrl has been properly set.
Screenshots




Versions:
Strange, but it seems to working fine today.
So I couldn't find the cause to prevent this from happening again.
After changing the PublicWebBaseURL key it is necessary to restart both the Server Instance and Visual Studio Code; then Publishing the app should work. without "Error: could not open the specified Startup page…" (we had the same Problem today with BC / Dynamics NAV 130)
Most helpful comment
After changing the PublicWebBaseURL key it is necessary to restart both the Server Instance and Visual Studio Code; then Publishing the app should work. without "Error: could not open the specified Startup page…" (we had the same Problem today with BC / Dynamics NAV 130)