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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Business Central 24.2 on-premise protocol mismatch between the client and the server.

(5) ShareShare
ReportReport
Posted on by 14
Hi Everyone,
I meet the below error message when Business Central 24.2 on premise manual create a new instance and try to access.
I had check all the port and credential are correct.
Is it a bug on the Business Central 24 version?
When use the below script at Business Central 23 version didn't have any issue.



I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,213 Most Valuable Professional on at
  • KL-13060704-0 Profile Picture
    14 on at
    Hi gdrenteria, 
    Thanks for your reply,
    but i'm using ClientServicesCredentialType = Windows and meet the error message.
  • Dynamics_Decoded_Gokul Profile Picture
    451 on at
    Hi
     
    could you please try to reinstall business central with proper steps and ensure business central instances are created with windows authentication and no changes to the web.config file after installation 
     
    thanks 
    gokulnath
  • KL-13060704-0 Profile Picture
    14 on at
    Hi Gokulnath,

    I had try reinstall several time and double confirm all the port and correct windows authentication.
    But still meet the above error message.

    I try on different server/local pc also meet this issue.
  • CU26060549-0 Profile Picture
    on at
    I am also getting the same issue, 
    Could you please verify the version of newly created Webserver instance
    Command:
    Get-NavWebServerInstance BC240_Test,
    It will also point you to Config file and you can verify the Authentication and Ports on that particular config file.
  • Suggested answer
    CU26060549-0 Profile Picture
    on at
    Hi, You need to chnage the PS file for it to work.
    If you navigate to installation media of BC240 that is C:\Program Files\Microsoft Dynamics 365 Business Central\240\Service and search for NAVWeb you encounter two files one that is located in \Service other that is located in \Service\admin.
    What you need to do is open the one that is in Service and modify from this 
    to this:
     
    Then Try again creating the WebServerInstance.

    Hope it helps :)
  • CU-20080832-10 Profile Picture
    6 on at
    Hi there,
    if anyone still has this problem. I´ve got the solution.
     
    The hint was to use Get-NavWebServerInstance BC240_Test
     
    This showed 16 instead of 24. So i removed all former BC versions (you can also temporarily remove them), restarted ISE and ran the scripts again. Now it works properly :).
     
    bye
    Karsten
  • Suggested answer
    SJ-21081601-0 Profile Picture
    4 on at
    Run this before New-NAVWebServerInstance and your problems be gone.

    Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\240\Web Client\Modules\NAVWebClientManagement\NAVWebClientManagement.psm1'

  • Flanza Profile Picture
    16 on at
    Guys, I know that usually the "protocol mismatch" error is due to the difference in ClientServicesCredentialType between the service instance and the webservice instance, but this case is different and I will show you something more.
    First of all, to replicate this problem you must have a PC or a server with multiple versions of BC installed. It's not important how many versions.
    I have tried with 23 + 24 and all the combinations from 14 to 23 + 24.
     
    I show you all the process, so all of you interested in this topic can - I hope - dig a little more, and maybe we find a solution to that.
    Try this.
     
    BC240 is correctly installed and the default instance is running and working



    The BC240 service ClientServiceCredentialType is “Windows”



    I want to create a new WebServerInstance called “CUSTOM24”, linked to the BC240 Service
     
    1. I Open the Administration shell version 24


     
    1. Creation of a new WebServerInstance

    New-NAVWebServerInstance -Server localhost -ServerInstance BC240 -WebServerInstance CUSTOM24 -ClientServicesCredentialType Windows -ClientServicesPort 7085 -ManagementServicesPort 7045



    (Notice that the Administration Shell is correctly the 24 version and the Windows protocol is the same of the BC240 service)



    OK, the Web Server Instance is created by the book, you can think.
    The cmdlet command is correct and the administration shell is the right one.

    Let’s open http://localhost:8080/CUSTOM24



    The error is in Italian, but is “Protocol mismatch between the client and the server”

    I did dig it a little more and I noticed this difference:
    Let’s go to the BC240 standard Web Server Instance created by the installation process of BC 24



    And let’s check the Properties of the file “Microsoft.Dynamics.Framework.UI.dll”:




    You can see the Product Version is right.
    Not let’s check the same but in the CUSTOM24 Web server instance we just created above:



    The Product Version of this DLL is wrong. And it says “14.0.xxxxx” because the lowest version of Business Central in this particular server is 14.
    If you have other versione of BC in a server, and you create a Webserver Instance with the 24 Administration Shell, a lot of the files created will always be of the lowest version you have in that server.
     
    This problem exists from version 24.0 and it's still there.
     
    I tried the suggested answer from CU26060549-0 with my heart full of hope, but nothing. It's not working.
     
     
  • F.Steiner Profile Picture
    2 on at
    Hello guys
     
    Run your ps-command with parameter -PublishFolder 
     
    New-NAVWebServerInstance -WebServerInstance $ServerInstance -Server Localhost -ServerInstance $ServerInstance -ClientServicesPort $CPort  -ManagementServicesPort $MPort  -ClientServicesCredentialType NavUserPassword -PublishFolder "C:\Program Files\Microsoft Dynamics 365 Business Central\$($Version)\Web Client\WebPublish"
     
    PublishFolder
    Specifies the location of the WebPublish folder that contains the content file that is required for Dynamics NAV Web client.
    Default path '%systemroot%\Program Files\Microsoft Dynamics NAV[version number]\Web Client\WebPublish' is not working from version 24, 25, . if you have multiple versions installed on your server
     
     
     
     

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans