web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

could not create a connection to the server

(0) ShareShare
ReportReport
Posted on by 70

Hi guys,

I cannot open Business Central 14 Cu 01 Client because of error "The program could not create a connection to the server. Do you want to try again?"  Business Central server is deployed on azure vm and connected with Azure SQL Database. My instance is constantly running. I can open development environment without any problems. Checked Firewall rules and it looks ok. I also tried to connect with Firewall off and it's still cannot create connection. I checked my cofig file couple of times and it's definitely good configured. i don't have any errors in error viewer beside some warnings with "The service could not add service principal names because the service account could not be found in Active Directory. Btw i have also a multitenant instance on the same server. Where is the problem? i got stuck....

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: could not create a connection to the server

    Hi,

    Understood, let's us know if you do require further assistance.

    Thanks.

  • johnnyb123 Profile Picture
    70 on at
    RE: could not create a connection to the server

    Im trying to connect by the client installed on VM with BC server. I have other instances, where the problem does not occur. I recompile all system objects and its still not working. Thought that there is a problem with config file... because I can run the client using development environment beside using RTC, but even if i change the config (also create automatically new and then change settings) it's still not working. Today i will try to create a new instance, maybe that will solve the problem..

    That's not a thing with DNS. I configured it correctly and the other instances are working well. The problem is only with the new one

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: could not create a connection to the server

    Hello,

    Are you connecting to Dynamics 365 Business Central Windows Client while connected through the VM / try to logon via the console. Then in your ClientUserSettings.config file on the Azure VM, set the server name should be set to localhost.

    Else the server name bust me your FQDN of your Azure VM (like xxx.cloudapp.azure.com), but that should be when connecting from outside the Azure VM (over the Internet). Best is of course to add a DNS label to the Azure VM in the Azure portal with a fixed IP address and secure it with a trusted cert or at least a self signed cert.

    If you own a domain, add a cname record to your public DNS pointing to xxx.cloudapp.azure.com.  From outside, you then connect to nav.yourdomain.com and directly from the Azure VM, you do connect with localhost.

    Ports may also have to be opened in the Azure Portal.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,080 Super User 2025 Season 2 on at
    RE: could not create a connection to the server

    Have you tried using the IP address instead of the server name? can you ping the VM?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,885

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,405

#3
Sumit Singh Profile Picture

Sumit Singh 2,837

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans