Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

this class does not have main method

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I created an action menuitem...i set to object propriety ---Class and RassetReport class but after i set the RassetReport class i get the warning that 
"this class does not have main method,or is abstract ori does not exist"
I have tried this method:

1. stop AOS
2 delete files from XppIL folder 
3. start AOS
4. Generate Full CIL/Generate incremental CIL
5. Compile AOT

But doesn't solve my problem. Even i've tried to restart server.. but nothing changed

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: this class does not have main method

    yes i have tried to compile Ax InternalBAse class but nothing

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: this class does not have main method

    Hi!

    You have to set EnumParameter (RAssetReportType) and other for menu item.

    Look method  RassetReport  construct

     RAssetReportType assetReportType;
        RAssetTrans      rAssetTrans;
        ;
        assetReportType = _args.parmEnum();
        switch (assetReportType)


  • Verified answer
    Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: this class does not have main method

    Hi,

    First, compile all the objects pertaining to a AIF document service.

    Secondly, compile the base class - AxInternalBase

    At last, select your project node and "Generate incremental CIL".

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans