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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Fleet Management and Fleet Management Extensions installation does not compile

(0) ShareShare
ReportReport
Posted on by 35

Using LCS, I installed a local VM Dev/Test version of AX 7. It is up and running and I can navigate through various menus and switch companies, configure options, etc. without problems.

Switching over to Visual Studio Professional 2015 Version 14.0.23107.0 D14REL (installed with the VM), I ran through the tutorial to create/add the Fleet Management and Fleet Management Extensions solution projects by following this tutorial:

https://community.dynamics.com/ax/b/newdynamicsax/archive/2016/05/19/tutorial-create-a-fleet-management-solution-file-out-of-the-fleet-management-models-in-the-aot

Everything worked as shown and I ended up with a solution containing the two projects.

However, when I select "Build Solution" I get tons of red errors. A few examples:

Severity Code Description Project File Line
Error 'anytype' type used in a using statement must be implicitly convertible to 'System.IDisposable'. FleetManagement (ISV) [Fleet Management] C:\AOSService\PackagesLocalDirectory\bin\XppSource\FleetManagement\AxClass_RonTest2d.xpp 53

Severity Code Description Project File Line
Error Class 'SysCodeGenAttribute' was not found. Are you missing a module reference? FleetManagement (ISV) [Fleet Management] C:\AOSService\PackagesLocalDirectory\bin\XppSource\FleetManagement\AxClass_RonTest2d.xpp 1

I would have expected the installed VM solutions from LCS to compile without red severity errors. Any ideas?

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi RonSo,

    The second error occurs due to a missing model reference from your fleet model. If you lookup the class SysCodeGenAttribute, you will find to which model this class belongs. Then update the model references for your model to include this reference.

    Did you use the exact same naming conventions? Did you also try to make some adjustments to the fleet example?

  • RonSo Profile Picture
    35 on at

    Thank you, Andre. I did exactly what you suggested. Looked up SysCodeGenAttribute, it is in the "Test Essentials" module. I then added the filtered AOT (filtered on Module:"Test Essentials") as a project to my Solution. When I did a "Build Solution", I got the same error:

    Severity Code Description Project File Line

    Error Class 'SysCodeGenAttribute' was not found. Are you missing a module reference? FleetManagement (ISV) [Fleet Management] C:\AOSService\PackagesLocalDirectory\bin\XppSource\FleetManagement\AxClass_RonTest2d.xpp 1

    Test Essentials is in layer SYS. The Fleet Management and Fleet Management Extension are both in layer ISV.

    If I expand the Test Essentials project (under the Solution), SysCodeGenAttribute is there.

    Now what?

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi RonSo,

    You have to update the model references using the next menu path in Visual Studio: Dynamics AX > Model management > Update model parameters...

    Then select your model and you can update referenced packages.

  • RonSo Profile Picture
    35 on at

    Hi Andre,

    So now I get the following error:

    Access to the path

    'C:\AOSService\PackagesLocalDirectory\FleetManagement\Descriptor\FleetManagement.xml' is denied.

    I am logged in to the server as Admin and I ran VisualStudio as Administrator. Do I have to stop IIS first?

    Stuck.

    -Ron

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Check if the directory and/or files are set to be read only for some reason. Usually you don't have to stop or reset IIS.

  • RonSo Profile Picture
    35 on at

    I reset the read only flag (why in the world did Microsoft do this on a Dev/Test VM build?). Went through and have been rebuilding model references. No joy. There is no "rebuild all" and so this would be an endless many hours long task to go through each and every model and rebuild. Doesn't make sense. Have any other ideas?

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    There is an option to build models from the Dynamics AX menu is VS. Then you can select all models at once and start the build process.

  • RonSo Profile Picture
    35 on at

    Again, thank you Andre, for your suggestions. After 3 days of compiling on my local VM, discovered it failed to compile due to insufficient memory (8GB). Increased memory to 10 GB and compile succeeded with zero errors and warnings. I then followed the tutorial again to create the Fleet Management solution, received 5 failures. Same ones. I then attempted to add the missing modules: "DirectoryFormAdapter" and "Application Suite". "DirectoryFormAdapter" worked fine. Upon trying to add "Application Suite" (has over 45,000 objects) I now get the error message: "Currently, Extending Composite Query is not supported."

    Once again stuck.

  • RonSo Profile Picture
    35 on at

    I have tried starting from scratch, recompiling the AOT, then loading the Fleet Management and Fleet Management Extensions, then updating references. Nothing I do gets rid of the errors. If you have connections to the Microsoft AX 7 LCS team, please let them know that their VM environment is not complete. Thank You.

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi RonSO,

    I have followed the steps as described in the blog and was not able to reproduce your error. What exact version of AX7 did you download and use here? I have used the VM with Update 1 which was made available on June 16.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans