Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

this class does not have main method

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

Categories:
  • 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".

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans