Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Publish-NAVApp : An error occurred while reading or writing to a file error

Posted on by 2,576

Hi all,

I had published extensions successfully previously. But now when I publish any extension, I get the following error.

PS C:\WINDOWS\system32> Publish-NAVApp -Path "Control Sample OKR Desktop 1" -ServerInstance dynamicsnav100


Publish-NAVApp : An error occurred while reading or writing to a file. (Exception from HRESULT: 0x80092003)
At line:1 char:1
+ Publish-NAVApp -Path "Control Sample OKR Desktop 1" -ServerInstance d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.Dynam...s.PublishNavApp:PublishNavApp) [Publish-NAVApp], Exception
+ FullyQualifiedErrorId : Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp

Please suggest how can this be solved.

*This post is locked for comments

  • Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Publish-NAVApp : An error occurred while reading or writing to a file error

    Yes.

    Sorry. My mistake.

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Publish-NAVApp : An error occurred while reading or writing to a file error

    Path Specifies the path to an extension package file that you want to publish to the Microsoft Dynamics NAV Server instance.

    it should be like

    Publish-NAVApp -ServerInstance DynamicsNAV90 -Path '..\XYZ.navx'

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