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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Unable to Publish Extension Using Powershell

(3) ShareShare
ReportReport
Posted on by 16
Hi All,
 
I'm unable to publish any extension using Powershell, I get this below kind of error -
 
Publish-NAVApp -ServerInstance BC250 -Path "T:\BCInstall\Test App\Default publisher_SalesOrderAPI_1.0.0.0.app" -SkipVerification -Tenant default -Force
WARNING: UnhandledErrorMessage
Publish-NAVApp : An error occurred when creating the WebSocket with the factory of type 'CoreClrClientWebSocketFactory'. See the inner exception for details.
At line:1 char:1
+ Publish-NAVApp -ServerInstance BC250 -Path "T:\BCInstall\Test App\Def ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Publish-NAVApp], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp
 
I have checked if all the ports are assigned with Proper SSL thumbprint/ If SSL certificate is valid/ If it is installed in the proper location / Checked the navsettings file for any kind of incorrect values / Checked the firewall settings for all ports
Still not finding any problem anywhere. I'm using BC version 25.
Please share your thoughts on this.
Attached event viewer log for reference.
 
Thanks.
I have the same question (1)
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    2,945 on at
    Hii there,
    As per requirement you can go through steps as per documentation by Microsoft.
     
    Attached link for reference.
     
     
     
    As per above link try ..
     
    If you found your reference answer.please mark it answered.
     
     
    Thank You.
    Kamal Khakhkhar 
  • CU10030946-0 Profile Picture
    16 on at
    Hi Kamal,
     
    I'm getting the above mentioned error when I run "Publish-NAVApp" command itself. 
    There is no error when I publish it from Visual Studio Code, but it publishes the app as "Dev" , when we do it from powershell it publishes as "Global" , I do not see any parameter that I can add in my app.json file to make it publish as "Global"
     
    Thanks
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    2,945 on at
    Hii there ,
    As per You published app through powershell it will show as global.
    For the difference you can check your publisher name. In app.
    And if you got error please import-module as per your version then do as per requirement.
     
     
    If you found answer please mark it answered.
     
    Thank you.
    Kamal Khakhkhar 
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,132 Super User 2026 Season 1 on at
  • Gerardo Rentería García Profile Picture
    25,555 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Bc 365 App install internal server error websocket closed

    Best Regards
    Gerardo

  • CU10030946-0 Profile Picture
    16 on at
     
    Thanks for your reply. I have gone through the post and the video, it did not help me in my cause.
    To further explain the issue that I'm facing, when I publish the app (using powershell) with SSL being turned off it works all well, but gives web socket error with SSL on. The error message and the event viewer log is attached in my post.
    Please do let me know if you have come across any such issue.
     
    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,949 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,064 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 559 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans