web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Data Upgrade ax12 to d365 missing dll

(3) ShareShare
ReportReport
Posted on by 14
I'm performing the data upgrade process within a VHD pointing to a database. While executing the process, I'm stuck on step 3. I get the following error about a missing DLL. I couldn't find anything related. All .NET versions are up to date.
 
Log level - Error |     Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'
   at Microsoft.Extensions.Logging.LoggerFactory.RefreshFilters(LoggerFilterOptions filterOptions)
   at Microsoft.Dynamics.Ax.Core.Instrumentation.CoreFrameworkLoggerFactory.InitializeLoggerFactory(IApplicationEnvironment applicationEnvironment)
   at Microsoft.Dynamics.Ax.Core.Instrumentation.CoreFrameworkLoggerFactory.<>c.<.cctor>b__25_0()
   at System.Lazy`1.CreateValue()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Lazy`1.get_Value()
   at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper..cctor()
=== Pre-bind state information ===
LOG: DisplayName = System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
 (Fully-specified)
LOG: Appbase = file:///C:/AosService/PackagesLocalDirectory/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\AosService\PackagesLocalDirectory\bin\SyncEngine.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
LOG: Attempting download of new URL file:///C:/AosService/PackagesLocalDirectory/bin/System.Private.CoreLib.DLL.
LOG: Attempting download of new URL file:///C:/AosService/PackagesLocalDirectory/bin/System.Private.CoreLib/System.Private.CoreLib.DLL.
LOG: Attempting download of new URL file:///C:/AosService/PackagesLocalDirectory/bin/Resources/System.Private.CoreLib.DLL.
LOG: Attempting download of new URL file:///C:/AosService/PackagesLocalDirectory/bin/Resources/System.Private.CoreLib/System.Private.CoreLib.DLL.
LOG: Attempting download of new URL file:///C:/AosService/PackagesLocalDirectory/bin/System.Private.CoreLib.EXE.
LOG: Attempting download of new URL file:///C:/AosService/PackagesLocalDirectory/bin/System.Private.CoreLib/System.Private.CoreLib.EXE.
LOG: Attempting download of new URL file:///C:/AosService/PackagesLocalDirectory/bin/Resources/System.Private.CoreLib.EXE.
LOG: Attempting download of new URL file:///C:/AosService/PackagesLocalDirectory/bin/Resources/System.Private.CoreLib/System.Private.CoreLi
 
I have the same question (0)
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    As far as I know, it's a .NET Core library and therefore it can't be used in F&O, which is built on .NET Framework, not .NET Core. I guess you make a mistake when upgrading your code and added a reference to a .NET Core assembly. It's now trying to locate .NET Core runtime assemblies, which can't succeed.
  • Suggested answer
    Navneeth Nagrajan Profile Picture
    2,538 Super User 2026 Season 1 on at
    Hi CU04092016-0,
     
    System.Private.CoreLib.dll is a part of the DevToolsService component and sits under DevToolsService\Code\DebuggerProxy. Looks like the DevToolsService is corrupted or needs a re-provisioning.
     
    A few questions:
    1. Are you able to build models under Visual Studio?
    2. Do you see any DB Sync issues?
    3. Is this a Cloud based VHD or an On-Premise VHD?
     
    Hope this helps. Happy to answer questions, if any. 
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    Can you please clarify what you were doing when you got the error? We are bringing various ideas but we're merely guessing what you're doing, such as whether you're trying to debug code.
     
    The stack trace shows that the assembly is trying to being found in PackagesLocalDirectory, which I understood as a problem with X++ packages. But it might also have something to do with the Visual Studio extension, as Navtheen suggests.
  • Calleb Malinoski Profile Picture
    14 on at
    I am using a VHD pointing to my database, following the documentation below: https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/migration-upgrade/on-prem-upgrade-2012.
     
    The problem is happening after running 
     
    .\AXUpdateInstaller.exe execute -runbookid="MajorVersionDataUpgrade-runbook"
     
    In step 3 at this point.
    Failed operation step '/DataUpgrade/PreReqs/AdditiveDbSync'
     
    The first problem I had was with 
     

    Log level - Error |     Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
    File name: 'System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
     
     
    I copy/paste the dll from a dotnet package, then I got the PrivaveCoreLib problem, but the main problem is all that ddl's missing.
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    Well, it looks like your environment doesn't have the correct version installed; trying to fix it by copying individual files doesn't sound like a good approach to me.
     
    First of all, are you sure that you're following the right documentation page? Do you an F&O environment on-premises? Note I don't mean a VHD; this is about a production environment hosted an a set of your own servers, with Service Fabric and such things. If not, the page you need is likely Upgrade from AX 2012 - Data upgrade in development environments. If you don't have an on-premises environment, the whole process at Data upgrade process for AX 2012 to Dynamics 365 Finance + Operations (on-premises) doesn't apply to you.
     
    By the way, you didn't mention anything about code upgrade. Have you completed it or is it OK for you to lose all data related to customizations?
  • Calleb Malinoski Profile Picture
    14 on at

     

    I created a new cloud hosted environment, for this purpose, I've been following these steps:

    Upgrade from AX 2012 - Data upgrade in development environments - Finance & Operations | Dynamics 365 | Microsoft Learn


    I skipped code upgrade, because for this purpose It wont be needed

    But running from begginig, I got the same error

     System.IO.FileNotFoundException: Could not load file or assembly 'System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

    After I created the new environment, I used the same database I was using, removed the .bak and restored it.

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    Please give us more details. What is the version of F&O in your cloud-hosted environment. Which package are you trying to install? Do I understand correctly that it's failing at step 10 when running AXUpdateInstaller.exe execute? Can you share the whole log file, please?
  • Calleb Malinoski Profile Picture
    14 on at
    Hi,
     
    I'm using a CHE in version 44. I'm using the same dataupgrade package available in the shared assets library for version 44.
    I ran the prerequisites in the AX12 environment, exported the database, and imported it into my CHE. The DLL error occurred in step 3.
     
    I opened a ticket with Microsoft and they gave me a command to copy the missing DDL from one folder to another.
     

    #Edit the Drive details below (C: for VHD, K: normally for CHEs)

    Copy-Item -Path "C:\AOSService\webroot\Bin\System.ValueTuple.dll" -Destination "C:\AOSService\PackagesLocalDirectory\bin" -Force


    But I got the following error:
     
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at gopts(Int32 , Char** )
       at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments)
       at Microsoft.Dynamics.AX.AOS.Startup()
       at Microsoft.Dynamics.AX.AosConfig.?A0x4463d7bd.GetAosConfig()
       at Microsoft.Dynamics.AX.AosConfig.Config.InitInternal()
       at Microsoft.Dynamics.AX.AosConfig.Config.InitOnce(Boolean isOfflineMode)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.StartAosCode(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunFullTableSync(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.AdditiveAllTableSync()
       at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.AdditiveTableSync()
       at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.RunSync()
       at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options)
       at Microsoft.Dynamics.AX.Framework.Database.SyncEngineMain.Sync(Parameters parameters)
       at Microsoft.Dynamics.AX.Framework.Database.SyncEngineMain.Main(String[] args)
    Failed operation step '/DataUpgrade/PreReqs/AdditiveDbSync'
    Process 'C:\AosService\PackagesLocalDirectory\bin\SyncEngine.exe' failed with exit code -2146232797; see error logs for details.
       at Microsoft.Dynamics.Servicing.DataUpgrade.Operations.Operation.RunProcess(String fileName, ArgumentsBuilder args)
       at Microsoft.Dynamics.Servicing.DataUpgrade.Operations.OperationStep.Execute()
    
    I've been stuck at the same step for 2 weeks now. The support call with Microsoft hasn't been very helpful. I'm thinking of using an older version of the d365 environment to test.
     
    I've attached the log file too.
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    It seems that the DB sync fails because the AOT can't start. Unfortunately, this is all kernel code that we can't even look at. Microsoft should address it; it's a pity that the support sucks so much.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 616

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 460 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans