Closed etolman-experlogix closed 3 years ago
I suggest you try installing your app using bccontainerhelper rather than from VScode.
Try this:
New-BcContainer `
-licenseFile 'C:\temp\License.flf' `
-accept_eula `
-accept_outdated `
-containerName bc16 `
-artifactUrl (Get-BcArtifactUrl -type Sandbox -version 16 -country w1 -select Latest) `
-assignPremiumPlan `
-doNotExportObjectsToText `
-shortcuts None `
-updateHosts
@TrippyZ, I should have mentioned this before: I've tried publishing the extension using bccontainerhelper, but that produces exactly the same license error.
@christianbraeunlich, thank you for the advice. Unfortunately the only licenses available for us to download are NAV licenses (version 2018 and earlier); there are no Business Central licenses. Microsoft's PartnerSource support has informed us that BC on-premise is not an available option there.
Sorry, I have no insight in how partners are getting their licenses, but every partner developing an AppSource App using docker will have to have a developer license with their objects to develop. If you post the question on Yammer (maybe the AppSource group) then other partners should be able to tell you how they get their licenses.
There is nothing you can do to get around this problem without the license.
Thank you, @freddydk. I may still have access to the Yammer channel; I'll give that a shot.
We found and fixed the issue on our end. Our IT just needed to update some permissions in PartnerSource to enable the license key configuration option there. Now we can generate all the Business Central On-Prem developer license files we need. Thank you to all who helped out!
We have a Business Central AL extension but have difficulties developing against a sandbox container. We encounter errors such as "Your program license does not allow you to publish..." (more details below). We are a certified ISV with a reserved object ID range. We have dev licenses for NAV 2013-2018, but we don't know how to obtain one for BC (or do they even exist for BC?). Microsoft personnel suggested posting an issue in here, so here we are. Any help would be appreciated.
Here are repro steps for one of those difficulties:
New-BCContainer -accept_eula -accept_outdated -containerName bc16 -artifactUrl (Get-BcArtifactUrl -type Sandbox -version 16 -country w1 -select Latest) -assignPremiumPlan -doNotExportObjectsToText -shortcuts None -updateHosts
It fails with an error message "Could not publish the package to the server. See Visual Studio Code debug console for more details.". The Debug Console shows the following (scroll to the right for the relevant parts on the last line):