Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : nHqbBrOLbpk/LGQSC6Uy/+
Microsoft Dynamics AX (Archived)

this class does not have main method

Like (1) ShareShare
ReportReport
Posted on 3 Apr 2017 08:10:12 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

  • Community Member Profile Picture
    on 03 Apr 2017 at 08:22:44
    RE: this class does not have main method

    yes i have tried to compile Ax InternalBAse class but nothing

  • Community Member Profile Picture
    on 03 Apr 2017 at 08:17:02
    RE: this class does not have main method

    Hi!

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

    Look method  RassetReport  construct

    1. RAssetReportType assetReportType;
    2. RAssetTrans rAssetTrans;
    3. ;
    4. assetReportType = _args.parmEnum();
    5. switch (assetReportType)


  • Verified answer
    Pravasti AK Profile Picture
    2,985 on 03 Apr 2017 at 08:16:25
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,474 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,592 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete