Closed fvet closed 3 years ago
We have the same Problem.
##[section]Starting: ALOpsAppCompiler
==============================================================================
Task : ALOps App Compiler
Description : Compile AL Extension(s) for Business Central
Version : 2.0.2429
Author : Hodor
Help : Compile Business Central extension(s) from AL code.
==============================================================================
******************************************************************************
*** ALOps v2 - Preview ***
******************************************************************************
*** Importing required ALOps-Functions
*** Task Inputs:
name value
---- -----
artifactversion
artifacttype Sandbox
artifactcountry de
versionselect NextMajor
alternativevsixurl
alsourcepath C:\agent1\_work\92\s
ruleset
appversiontemplate 17.3.0.*
appfilenametemplate %APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%_%BC_TYPE%_%BC_VERSION%_%BC_COUNTRY%.app
alcodeanalyzer AppSourceCop,CodeCop,PerTenantExtensionCop,UICop
showmycode Keep
applicationinsightskey
alcachepath C:\agent1\_work\92\s
publishartifact False
publishxlif False
failonwarnings False
storageaccount
sastoken ...
printappmanifest True
*** For documentation, please visit : https://www.alops.be/documentation
*** Importing required Task-Functions
*** Artifact Type : [Sandbox]
*** Artifact Version: []
*** Artifact Country: [de]
*** AL Source Path : [C:\agent1\_work\92\s]
*** AL Cache Path : [C:\agent1\_work\92\s]
*** Default Working Folder: C:\agent1\_work\92\s
*** Artifact Folder : C:\agent1\_work\92\a
*** Agent Tool Folder : C:\agent1\_work\_tool
*** Agent Temp Folder : C:\agent1\_work\_temp
*** Resolving Path: [C:\agent1\_work\92\s]
*** AL Source Folder : C:\agent1\_work\92\s
*** Resolving Path: [C:\agent1\_work\92\s]
*** AL Cache Folder : C:\agent1\_work\92\s
*** Check BcContainerHelper
*** Load BcContainerHelper
BcContainerHelper version 2.0.11
##[command]"Get-BCArtifactUrl"
Name Value
---- -----
sasToken ?sv=2019-02-02&sig=IN9bl0THH1U5idOF612IGG7jQaMAOznBjFlqyUHuysQ%3D&spr=https&st=2021-0...
select NextMajor
type Sandbox
country de
-sasToken: *** -select: NextMajor -type: Sandbox -country: de
Downloading application artifact /sandbox/19.0.25519.0/de
Downloading C:\Users\script-service\AppData\Local\Temp\de6dc490-ec3b-43a6-a901-096836184ef5.zip
Unpacking application artifact to tmp folder using 7zip
Downloading platform artifact /sandbox/19.0.25519.0/platform
Downloading C:\Users\script-service\AppData\Local\Temp\78a13596-e520-4ba3-ba56-20c574d118ae.zip
Unpacking platform artifact to tmp folder using 7zip
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\19.0.25519.0\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
Downloading c:\bcartifacts.cache\sandbox\19.0.25519.0\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading c:\bcartifacts.cache\sandbox\19.0.25519.0\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
*** Platform: c:\bcartifacts.cache\sandbox\19.0.25519.0\platform
*** Localisation: c:\bcartifacts.cache\sandbox\19.0.25519.0\de
*** BC Management DLL: C:\bcartifacts.cache\sandbox\19.0.25519.0\platform\LegacyDlls\program files\Microsoft Dynamics NAV\180\RoleTailored Client\Microsoft.Dynamics.Nav.Management.dll
*** BC App Management DLL: C:\bcartifacts.cache\sandbox\19.0.25519.0\platform\LegacyDlls\program files\Microsoft Dynamics NAV\180\RoleTailored Client\Microsoft.Dynamics.Nav.Apps.Management.dll
*** Get [*.app] and [app.json] files recursive from [C:\agent1\_work\92\s]
*** Found [7] files.
*** Extract App detail from [C:\agent1\_work\92\s\MainApp\.dependencies\CKL Software GmbH_Kostenrechnung 365 Cost Accounting 365_3.4.1.0.app]
##[error]Der Typeninitialisierer für "Microsoft.Dynamics.Nav.Management.NavAdminLogger" hat eine Ausnahme verursacht.
##[section]Finishing: ALOpsAppCompiler
Hi, I don't get this. Is there a special repro/yaml you can share?
Sure. Just upload this project to Azure DevOps. You find the pipeline in .azuredevops\NextMajor.yml
I get this error:
##[section]Starting: ALOpsAppCompiler
==============================================================================
Task : ALOps App Compiler
Description : Compile AL Extension(s) for Business Central
Version : 2.0.2476
Author : Hodor
Help : Compile Business Central extension(s) from AL code.
==============================================================================
******************************************************************************
*** ALOps v2 - Preview ***
******************************************************************************
*** Importing required ALOps-Functions
*** Task Inputs:
name value
---- -----
artifactversion
artifacttype Sandbox
artifactcountry de
versionselect NextMajor
alternativevsixurl
alsourcepath C:\agent1\_work\491\s
ruleset
appversiontemplate ?.?.0.*
appfilenametemplate %APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%_%BC_TYPE%_%BC_VERSION%_%BC_COUNTRY%.app
alcodeanalyzer AppSourceCop,CodeCop,PerTenantExtensionCop,UICop
showmycode Keep
applicationinsightskey
alcachepath C:\agent1\_work\491\s
publishartifact False
publishxlif False
failonwarnings False
storageaccount
sastoken ...
printappmanifest True
outputalclogs True
additionalprobingpaths
*** For documentation, please visit : https://www.alops.be/documentation
*** Importing required Task-Functions
*** Artifact Type : [Sandbox]
*** Artifact Version: []
*** Artifact Country: [de]
*** AL Source Path : [C:\agent1\_work\491\s]
*** AL Cache Path : [C:\agent1\_work\491\s]
*** Default Working Folder: C:\agent1\_work\491\s
*** Artifact Folder : C:\agent1\_work\491\a
*** Agent Tool Folder : C:\agent1\_work\_tool
*** Agent Temp Folder : C:\agent1\_work\_temp
*** Resolving Path: [C:\agent1\_work\491\s]
*** AL Source Folder : C:\agent1\_work\491\s
*** Resolving Path: [C:\agent1\_work\491\s]
*** AL Cache Folder : C:\agent1\_work\491\s
*** Check BcContainerHelper
*** Load BcContainerHelper
BcContainerHelper version 2.0.11
##[command]"Get-BCArtifactUrl"
Name Value
---- -----
sasToken ...
select NextMajor
type Sandbox
country de
-sasToken: *** -select: NextMajor -type: Sandbox -country: de
*** Platform: c:\bcartifacts.cache\sandbox\19.0.25759.0\platform
*** Localisation: c:\bcartifacts.cache\sandbox\19.0.25759.0\de
*** BC Management DLL: C:\bcartifacts.cache\sandbox\19.0.25759.0\platform\LegacyDlls\program files\Microsoft Dynamics NAV\180\RoleTailored Client\Microsoft.Dynamics.Nav.Management.dll
*** BC App Management DLL: C:\bcartifacts.cache\sandbox\19.0.25759.0\platform\LegacyDlls\program files\Microsoft Dynamics NAV\180\RoleTailored Client\Microsoft.Dynamics.Nav.Apps.Management.dll
*** Get [*.app] and [app.json] files recursive from [C:\agent1\_work\491\s]
*** Found [2] files.
*** Extract App detail from [C:\agent1\_work\491\s\MainApp\.dependencies\Default publisher_ALProject3_1.0.0.0.app]
##[error]Der Typeninitialisierer für "Microsoft.Dynamics.Nav.Management.NavAdminLogger" hat eine Ausnahme verursacht.
##[section]Finishing: ALOpsAppCompiler
We have a repro, but it's weird. we only do a "Get-navappinfo" on the app in the .dependencies-folder, so I assume it's a bug at Microsoft.
I'm going to verify this, and log an issue if so.. .
We found the issue - it's a bug in the Artifacts 🙄. So frustrating...
We'll hotfix this today.. (building as we speak).
When online - it has version v1.442.2488
We are now taking alternative binaries as the ones in the "LegacyDll"-folder (from the artifacts) seem to be broken...
Dear @fvet ,
Please check our latest release v1.443.2509 which addresses this issue.
Kind regards
Describe the bug Compiling our code using ALOpsAppCompiler@2 against the NextMajor fails on The type initializer for 'Microsoft.Dynamics.Nav.Management.NavAdminLogger' threw an exception.
We don't depend / reference NavAdminLogger in our code, not sure if it's something ALOPS depends on?
the output Also the complete output is necessary for us to see what is going on. Also use backtics:
FYI : C:\DockerInstallation\Agent2_work\58\s\Navitrans.Base\app.alpackages\Navitrans_Navitrans 365 Base Application_17.3.0.11749_onprem_17.2_w1.app is our previous app package.