Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Error: Could not connect to the server. Please verify that

Posted on by Microsoft Employee

Hi all

I have pulled and installed the latest BC docker image. 

VSIX: v6.1.350698

Base: 16.xxxxx

System: 16.xxxxx

Runtime: 6.0

Target: Cloud

I have installed the latest certificate and VSIX file, but I still get a connection error. We have mapped port 7049 to 8049.

Until now it has worked fine but after the latest install it stopped working. 

Anyone has an idea of what went wrong here? or if there is an internal error in the latest BC Docker that still keeps looking for 7049 instead of 8049?


[2020-10-14 10:40:09.18] Publishing AL application using launch configuration 'xxxxxxx'.
[2020-10-14 10:40:09.70] Targeting server 'https://xxxxxxxxx:8049' and server instance 'BC'.
[2020-10-14 10:40:09.86] Using user name and password authentication. User name used is: 'xxxx'.
[2020-10-14 10:40:09.89] Sending request to xxxxxxxxx:7049/.../metadata
[2020-10-14 10:40:11.08] Error: Could not connect to the server. Please verify that:
1. The server is started.
2. The development endpoint is enabled (DeveloperServicesEnabled server setting).
3. The service name matches the one specified in the URL.
4. The port number matches the one specified in the URL (DeveloperServicesPort server setting).
5. The protocol matches the one specified in the URL (DeveloperServicesSSLEnabled server setting), and that a trusted certificate is used in case of an SSL connection.
[2020-10-14 10:40:11.08] Error: An error occured while processing the request.
Request ID: b7f78ee4-842c-41f8-bf5a-447bb1e3b870
Session ID: c30047ea-5855-48fd-a74b-63eadf105ee2

If you are targeting a cloud instance, supply these IDs if contacting Microsoft support.

  • Marco Mels Profile Picture
    Marco Mels on at
    RE: Error: Could not connect to the server. Please verify that

    Thank you for sharing final solution, this does certainly help others.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error: Could not connect to the server. Please verify that

    I found a solution. Add "Port" to Launch.json.

    {
        "version""0.2.0",
        "configurations": [
            {
                "name""xxxxxx",
                "type""al",
                "request""launch",
                "server""https://xxxxxxxx:8049",
                "serverInstance""BC",
                "authentication""UserPassword",
                "startupObjectType""Page",
                "schemaUpdateMode""ForceSync",
                "startupObjectId"123456,
                "breakOnError"true,
                "launchBrowser"true,
                "port": 8049

            }
        ]
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans