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

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
    1,282 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
    1,282 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
    20,441 Super User 2025 Season 2 on at
  • Gerardo Rentería García Profile Picture
    25,230 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

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 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans