Search This Blog

Wednesday 19 July 2017

An invalid directory structure for Microsoft Dynamics AX was detected


An invalid directory structure for Microsoft Dynamics AX was detected. The subdirectory C:\Program Files (x86)\Microsoft Dynamics AX\60\\Client\bin does not exist.

If you came across an issue recently when you tried to run Dynamics AX 2012 from client configuration file on 32-bit operation system. Client configuration file was created on 64-bit operating system and was copied to 32-bit operating system computer to use.














As error says it tried to bind directory to path C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin which was not exist on 32-bit operating system.

Solution: 1

Open client configuration (.axc) file in Notepad and change the path at the very end of file.

Source computer (64-bit) configuration will look like this.






























64-bit operating system generated configuration file destination computer (32-bit) configuration should look like this. This the correct path as per 32-bit computer directory structure.






























Save configuration file after correcting the paths. It will work smoothly.


Solution: 2

Go to run and type regedit and now press enter.
Go to:

[HKEY_CURRENT_USER\Software\Microsoft\Dynamics\6.0\Configuration\Original (installed configuration)]























Manually modifying the registry keys with correct values for 32-bit and 64-bit Operating system:

64-bit Operating System registry key values:

“bindir”=”C:Programe Files (x86)\Microsoft Dynamics AX\60\\Client\Bin”
“datadir”=”C:Program Files (x86)\Microsoft Dynamics AX\60\\Client\Data”
“directory”=”C:\Program Files (x86)\Microsoft Dynamics AX\60\\Client”

32-bit Operating System registry key values:

“bindir”=”C:Programe Files\Microsoft Dynamics AX\60\\Client\Bin”
“datadir”=”C:Program Files\Microsoft Dynamics AX\60\\Client\Data”
“directory”=”C:\Program Files\Microsoft Dynamics AX\60\\Client”


Solution: 3
  • Go to 32-bit Operating System.
  • Click startàControl PanelàAdministrator Tools click on Microsoft Dynamics AX 2012 Configuration.



















  • Go to Connection Tab and check Server Name, Instance Name, TCP\IP Port, WSDL Port.
  • Go to Manage button and click on Create configuration.....
  • Put your Configuration name in dialog box and click OK.











  • Click on Refresh button.
  • After refresh configuration go to Manage button and click on Save Configuration File.

Friday 7 July 2017

The CIL generator found error and could not save the new assembly





















Solution:

  • First Stop the AOS Service.
  • Delete all file from below path (Delete only files which are not any folders).
  • First take the backup of all files under XppIL folder.
C:\Program Files\Microsoft Dynamics AX\60\Server\Your AOS Name\bin\XppIL


















  • Start the AOS Service.
  • Perform a full CIL.
















After generate full CIL has successfully prcessed