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 :
Microsoft Dynamics NAV (Archived)

How to upload .app file to Business Central Trial Production environment

(0) ShareShare
ReportReport
Posted on by 3,967

Hi,
We've created the extension and deployed in Business Central container. I tried uploading the .app file that is generated during compilation. The deployment status failed with error 'Publish operation failed with code PackageValidationFailed. Details: Package validation failed. Please contact Administrator for more information.'.
Kindly guide.

*This post is locked for comments

I have the same question (0)
  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Are the container and business central the same version?

  • Olister Rumao Profile Picture
    3,967 on at

    Yes,

    I've made the container using the powershell scripts geneated from the Business Central through the Sandbox Environment(Container).

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Ty to sign the package:

    docs.microsoft.com/.../devenv-sign-extension

  • Olister Rumao Profile Picture
    3,967 on at

    Hi Stefano,

    I tried Signing the .app file and publishing using Publish-NavContainerApp.

    But there is an issue publishing the app.

    Error:

    Copy C:\Users\cfadmin\Desktop\FTL-Final\CLOUDFRONTS_Fast Track Leasing_1.0.0.0.app to container NAVSERVERFINAL (c:\run\CLOUDFRONTS_Fas

    t Track Leasing_1.0.0.0.app)

    Publishing c:\run\CLOUDFRONTS_Fast Track Leasing_1.0.0.0.app

    Synchronizing Fast Track Leasing on tenant default

    Installing Fast Track Leasing on tenant default

    A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. (Exception from

    HRESULT: 0x800B0109)

    At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.2.7.4\AppHandling\Publish-NavContainerApp.ps1:53 char:5

    +     Invoke-Command -Session $session -ScriptBlock { Param($appFile, $ ...

    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : InvalidArgument: (Microsoft.Dynam...s.PublishNavApp:PublishNavApp) [Publish-NAVApp], InvalidOperationE

      xception

       + FullyQualifiedErrorId : Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp

       + PSComputerName        : 7936da1fc4597366183211760f299e8c14fc2a0415b5a677b96f6785d69c132f

  • Olister Rumao Profile Picture
    3,967 on at

    I also tried installing the certificate Trust Root Certification Authorities,

    Enterprise Trust, Trusted Publishers & Trusted People.

  • Suggested answer
    Andrey Baludin Profile Picture
    3,941 on at

    1. Check your app.json file that Platform and application has 12.0.0.0 values

    "platform": "12.0.0.0",

    "application": "12.0.0.0",

    2. When you wrote about Uploading an extension - you mean this button? If not - try it.

    qqq.JPG

  • Olister Rumao Profile Picture
    3,967 on at

    Hi Andrey,

    I'm trying to Upload Extension on businesscentral.dynamics.com.

    I can actually upload to the container via Visual Studio code.

    I tried making the platform & application to 12.0.0.0. But it gives the same error.

  • Povl O Profile Picture
    on at

    I have same issue, and to me it seems that only some type of extensions are allowed.

    I have done some tableextensions, xmlport, pageextension - but if I try to make a new table - I get message PackageValidationFailed - and is left in complete darkness as to what is going on.

    I didn't think this feature of manually uploading an .app file was coming, so I was thrilled.

    Today, I am just frustrated after so many failed attempts to figure it out.

  • Olister Rumao Profile Picture
    3,967 on at

    Hi,

    Can anyone please guide on this issue ?

    If there is any specific set of processes to be followed please reply.

  • Community Member Profile Picture
    on at

    Hi,

    I am new to Business Central, so please forgive if I didn't answer correctly. I just installed my app successfully. Here's my approach:

    1. Install Dynamic NAV 2008 to develop computer, otherwize sign tool cann't recognize .app format.

    2. Create a pfx file, open powershell as administrator, run command ' MakeCert -sk myNewKey -n "CN=HartogJacobs" -r -ss my MyCert.pfx

    3.   Copy myCert to developing directory, open 'Developer command Prompt for VS 2017',  run command 'SignTool sign /f MyCert.pfx /t timestamp.verisign.com/.../timestamp.dll HartogJacobs_ALInvoice_1.0.0.0.app'

    Then the extensin is installed

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans