Wednesday 28 December 2011

"An invalid directory structure for Microsoft Dynamics AX was detected"


Running AX 2009 Client raises error: "An invalid directory structure for Microsoft Dynamics AX was detected"
We came across an issue recently where the Microsoft Dynamics AX 2009 Client was installed ,However after deployment when the client is run from the desktop systems we got a pop window with an error and clicking ok closes the client down:


 Error in text:
An invalid directory structure for Microsoft Dynamics AX was detcted. The subdirectory \Client\bin does not exist.

Upon further investigation, when we ran regedit to look at the registry keys created for the AX Client configuration, indeed it had incomplete path to the client\bin folder. The cause of teh error message. The issue occured on any Windows XP/Vista/7/2003 R2/2008/2008 R2 platform whether its 32bit or 64bit. The paths recorded in the registry were:

[HKEY_CURRENT_USER\Software\Microsoft\Dynamics\5.0\Configuration\Original (installed configuration)]
"bindir"="\Client\Bin"
"datadir"="Client\Data"
"directory"="\Client"
and the correct registry paths should have been (on an x64 system):
[HKEY_CURRENT_USER\Software\Microsoft\Dynamics\5.0\Configuration\Original (installed configuration)]
"bindir"="C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin"
"datadir"="C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Data"
"directory"="C:\Program Files (x86)\Microsoft Dynamics AX\50\Client"
(x86 system):
[HKEY_CURRENT_USER\Software\Microsoft\Dynamics\5.0\Configuration\Original (installed configuration)]
"bindir"="C:\Program Files\Microsoft Dynamics AX\50\Client\Bin"
"datadir"="C:\Program Files\Microsoft Dynamics AX\50\Client\Data"
"directory"="C:\Program Files\Microsoft Dynamics AX\50\Client"
manually modifying the registry keys with correct values, resolves the issue and allows clients to be run without any errors.

3 comments:

  1. Hi, can you give me a guideline on how to solve this problem, as my client also have the same problem to install ax 2009.

    ReplyDelete
  2. trung tâm đào tạo kế toán tại nghệ an
    học kế toán tại cầu giấy
    trung tâm kế toán tại cầu giấy
    học kế toán tại bình dương
    tiếng anh cho người mới bắt đầu
    trung tâm kế toán tại đà nẵng
    học kế toán ở đồng nai
    cấp sơ giai, cái này thì không nói! Nhưng một tên gia hỏa khác cũng có
    năng lượng kinh khủng, không rõ có phải là năng lượng của Cự long hay
    không, năng lượng hắn ít nhất hơn ta vài lần, thực lực hẳn là Thập nhất
    cấp trung giai!" Diệp Cô Thành nói rất nghiêm túc.

    Đáng chết! Ngày hôm qua mình đã đắc tội với Long Tộc, Long Hoàng chắc
    chắn sẽ không quên, không chừng để bảo vệ long uy hắn có thể phái bọn
    Thần long kia để đối phó với chúng ta, hơn nữa Long Hoàng nhất định sẽ
    không dễ dàng rời Đường Cổ Lạp Sơn để đi đối phó với mình. Mà tên gia
    hỏa mang theo năng lượng không rõ kia lại muốn làm gì nhỉ? Mình đáng lẽ
    nên nghĩ tới, mình đã có thể tạo một đám thủ hạ thực lực cường đại, Long
    Tộc kia sống lâu mấy ngàn năm lẽ nào lại không có một hai tên biến thái?
    Nghe Diệp Cô Thành nói, Đoạn Vân vẻ mặt đầy lo lắng.

    "Lão Đại, ngươi lo lắng cái gì? Long Tộc không biết thực lực thật sự của
    chúng ta, bọn họ sẽ không dễ dàng phái ra kẻ đã đạt Thập nhất cấp đâu!"
    Tiểu Phi HIệp nhìn vẻ mặt Đoạn Vân khẽ nhắc nhở.

    Đúng vậy, thủ hạ mình đều có năng lực nội liễm rất hiệu quả, Long Hoàng
    hẳn cảm ứng không ra năng lượng của bọn họ: " Diệp Cô Thành, ngươi có
    khả năng cảm ứng được thực lực của Phì Tử hay không?" Nghĩ vậy, Đoạn Vân

    http://kylin1st.com
    http://cattleyavn.com
    http://kenyseo.com
    http://ngoduong89.com
    trung tâm dạy kế toán
    http://meomeo007.com

    ReplyDelete
  3. There are some interesting cut-off dates in this article however I don’t know if I see all of them heart to heart. There's some validity but I will take maintain opinion till I look into it further. Good article , thanks and we wish more! Added to FeedBurner as effectively free online casino slots

    ReplyDelete