Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Method 'Main' does not exist on class xxxx

(0) ShareShare
ReportReport
Posted on by 253
Dear All,
 
This is my class data source for my project. Recently it worked normally but when I pin debug then remove it. I don't know what's happen, but I got an error like this message below can someone guide me on how to solved it? 
 
and when I compare 2 project in the same class 1 project I got an error and another is error???
 
//////
 
////
  • Chomchanok Profile Picture
    Chomchanok 253 on at
    Method 'Main' does not exist on class xxxx
     
    I apologize for forgetting to check the class name in a list. It's possible that my mouse accidentally slid and changed the class name.
    Now it's work.
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,379 Most Valuable Professional on at
    Method 'Main' does not exist on class xxxx
    Calling a report data provider (RDP) class from a menu item doesn't look normal to me. What are you trying to achieve by that?
     
    These classes are called by the reporting framework when a report executes and it needs to fetch the data. If you want to to run the report, call its controller class, not the RDP class.
  • Chomchanok Profile Picture
    Chomchanok 253 on at
    Method 'Main' does not exist on class xxxx
     
    this is flow for my app.the structure are quite normal but I don't know why I got an error. For 'main' are not exist in this class long time ago. 
    But I don't know why it's just show error to me.
     
  • Martin Dráb Profile Picture
    Martin Dráb 230,379 Most Valuable Professional on at
    Method 'Main' does not exist on class xxxx
    I'm assuming that you run the project. The first one calls HSTStockCard menu item, the other HSTStockCardData. I don't know what these menu items call and which of them is failing, but it seems that one of tries to calls class xxxx and it can't, because it requires the class having main(Args) method, which it doesn't have. Either you shouldn't call the class or you need to add main(). If it's about the data provider class, calling it by a menu item doesn't make good sense to me.

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

Product updates

Dynamics 365 release plans