I am upgrade BC24 to BC25. in that process i have faces some issue regarding DLL file.
#Import Module
Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\240\Service\NavAdminTool.ps1'
Steps : 2
#Uninstall Extensions from BC 24
Get-NAVAppInfo -ServerInstance BC240 -Tenant default | % { Uninstall-NAVApp -ServerInstance BC240 -Tenant default -Name $_.Name -Version $_.Version -Force}
Steps : 3
#Unpublish Extensions from BC 24
Get-NAVAppInfo -ServerInstance BC240 | % { Unpublish-NAVApp -ServerInstance BC240 -Name $_.Name -Version $_.Version}
Steps : 4
#Remove Symbols
Get-NAVAppInfo -ServerInstance BC240 -SymbolsOnly | % { Unpublish-NAVApp -ServerInstance BC240 -Name $_.Name -Version $_.Version }
Steps : 5
#Stop Service
Stop-NAVServerInstance -ServerInstance BC240
after step : 5 i will install BC25 and it will successfully installed in my system after that i will perform below steps
Steps : 6
#Import Module
Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\250\Service\NavAdminTool.ps1'
Steps : 7
#Convert the application database to version 25
Invoke-NAVApplicationDatabaseConversion -DatabaseServer "DESKTOP-SAEHFRV\SQLEXPRESS" -DatabaseName LocalDB_DAV
in above step: 7 it will give below error Like:
WARNING: UnhandledErrorMessage
Invoke-NAVApplicationDatabaseConversion : Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Could not find or load a specific file. (0x80131621)
At line:1 char:1
+ Invoke-NAVApplicationDatabaseConversion -DatabaseServer "DESKTOP-SAEH ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-NAVApplicationDatabaseConversion], FileLoadException
+ FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.Dynamics.Nav.Management.Cmdlets.InvokeNAVApplicationDat
abaseConversion
for above error i have checked that
- .NET 8 is installed
- DLL exists in BC service folder - :\Program Files\Microsoft Dynamics 365 Business Central\250\Service\Microsoft.Bcl.AsyncInterfaces.dll
- PowerShell version is correct