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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

this class does not have main method

(1) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    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
    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
    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

Responsible AI policies

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

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
KP-31070522-0 Profile Picture

KP-31070522-0 3

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans