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, ...
Answered

Ver. 10.0.40 update error Object reference not set to an instance of an object.

(1) ShareShare
ReportReport
Posted on by 30
1. I have run with administrator rights.
2. Also decompress the installation package to the root directory of drive C, or create a folder in the root directory of drive C, and then decompress the installation package to this folder.
 
Object reference not set to an instance of an object.
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.<>c__DisplayClass8_0.<ExportToFile>b__0()
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.ExecuteWithRetry(Action action, String callerName, Int32 retryInterval, Int32 maxRetryCount)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.ExportToFile(String filePath)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookData.Save()
   at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)
   at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at
    Moved the question to the Dynamics 365 Finance forum as this is not related to the previous Dynamics AX product.
     
    I do assume you have a question about how to solve this error. Can you tell us if you used the correct file name and if it has the correct details? Did you open the command prompt with the option "Run as administrator"?
  • Anton Venter Profile Picture
    20,656 Super User 2026 Season 1 on at
    Create a new directory called c:\tmp or c:\update or whatever. Don't use c:\Windows\temp because of permissions and it's not recommended. Creating a new directory will make you the owner and you won't have permission issues in the folder you created.
     
    By the way, did you unblock the file after you downloaded it? Assuming you downloaded it from the internet using a browser.
  • Anton Venter Profile Picture
    20,656 Super User 2026 Season 1 on at
    Create a new directory called c:\tmp or c:\update or whatever. Don't use c:\Windows\temp because of permissions and it's not recommended. Creating a new directory will make you the owner and you won't have permission issues in the folder you created.
     
    By the way, did you unblock the file after you downloaded it? Assuming you downloaded it from the internet using a browser.
  • Vast Profile Picture
    30 on at
    Create a new directory called c:\tmp or c:\update or whatever. Don't use c:\Windows\temp because of permissions and it's not recommended. Creating a new directory will make you the owner and you won't have permission issues in the folder you created.
     
    By the way, did you unblock the file after you downloaded it? Assuming you downloaded it from the internet using a browser.
     
     
    All try, but still error.
  • Anthony Blake Profile Picture
    3,092 Super User 2026 Season 1 on at
    Hi, are you sure C is the best drive to run that from? On the dev instances K: is normally the drive with plenty of space, or one of the backup drives. Even if there is enough space, its running the OS.
  • Clement Ruffin Profile Picture
    2 on at
    Hi,
    Were you able to find a solution ? I have the same error on updating a devbox to 10.0.40
  • RV-18071211-0 Profile Picture
    2 on at
    I am having the same issue when trying to update my local development VM. 

    When checking the logfile the AxUpdateInstaller generated (AxUpdateInstaller_import_20240718120525905.log) I see that it attempted to run action 'ExportToFile' and failed. 

    [12:06:23.1897] Failed to run action 'ExportToFile' after 20 attempt(s)
    [12:06:23.1897] Object reference not set to an instance of an object.
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.<>c__DisplayClass8_0.<ExportToFile>b__0()
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.ExecuteWithRetry(Action action, String callerName, Int32 retryInterval, Int32 maxRetryCount)

    And finishes with: 
    [12:06:26.1910] An error occurred during execution.
    [12:06:26.1910] Object reference not set to an instance of an object.
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.<>c__DisplayClass8_0.<ExportToFile>b__0()
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.ExecuteWithRetry(Action action, String callerName, Int32 retryInterval, Int32 maxRetryCount)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.ExportToFile(String filePath)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookData.Save()
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
    [12:06:26.1910] Exiting with exit code [196609]
     
    Worked perfectly fine on my colleagues VM's with the same setup and methodology.
    I have not found a solution yet. I think I will install a clean VM and see if the problem arises again. 

     
  • Verified answer
    Vast Profile Picture
    30 on at
    After using the latest version of VHD, this issue is resolved.
  • RN-24071723-0 Profile Picture
    41 on at
     I was able to successfully install .40 upgrade using the -UseExistingTopologyFile parameter in the runbook script.
     
    Example:
    .\AXUpdateInstaller.exe generate -runbookid="(run book ID)" -topologyfile="DefaultTopologyData.xml" -UseExistingTopologyFile -servicemodelfile="DefaultServiceModelData.xml" -runbookfile="(run book ID).xml"
    Discussed in more detail here:

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 658

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans