Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Error publishing extension

Posted on by Microsoft Employee

Hi,

I am trying to publish an extension to a local service (non-multitenant) and I´m getting an error while calling Publish-NAVApp. It runs for about 60 seconds and finally returns with an error:

extension_2D00_error.PNG

I tried calling other cmdlets where ServiceInstance is a parameter and then I get this error:

extension_2D00_error_2D00_2.PNG

We use powershell to create NAV service instances, so NAV is not installed on the machine, but it runs perfectly fine and I am able to run the RTC and develop.

I have found out that the problem is due to CustomSettings.config in the RTC folder is being used instead of the filepath of the config provided to the service. Is there any way to force the powershell cmdlets to use the CustomSettings.config file the service is using?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error publishing extension

    Hi AJ,

    I have done that and there is no parameter for the CustomSettings path: msdn.microsoft.com/.../publish-navapp;MSPPError=-2147217396#parameters.

    Best regards,

    Viktor

  • AJAnsari Profile Picture
    AJAnsari 5,754 on at
    RE: Error publishing extension

    Have you tried using PowerShell ISE, loading the requisite cmdlets and using its more user-friendly Command pane to run Publish-NAVApp. They may be a parameter to select a CustomConfig in a different path that you are not aware of, and the Command Pane is PowerShell ISE will help there (shows all possible parameters), and makes the process of generating PowerShell commands and creating reusable PowerShell scripts very simple.

    I hope this helps. If my response has answered your question, please verify by clicking Yes next to "Did this answer your question?"

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans