Skip to main content



No record found.

Dynamics 365 Community / Forums / Finance forum / Regarding Runnable cla...
Finance forum

Regarding Runnable class issue

Posted on by 12
Hi all, I wrote a simple runnable class code and tried to run it. Build is successfull, but unable to see the result. It is throwing the following error after clicking on start button 'object reference not set to an instance' . Please help to resolve this issue.

I have set the runnable class as Startup Object and also rebuilt the project. 
class PP_DataType
    public static void main(Args _args)
        Info('Hello World from the Server Side');
Please give me more insight on this.
  • Suggested answer
    SS-21050922-0 Profile Picture
    SS-21050922-0 12 on at
    Regarding Runnable class issue
    Hi @Mohamed Amine Mahmoudi, thanks for your response.
    I restarted the Visual studio and it worked!!!

  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 4,826 User Group Leader on at
    Regarding Runnable class issue
    Try to restart visual studio .

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,632 Super User

Martin Dráb Profile Picture

Martin Dráb 224,528 Super User

nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans