Skip to main content

Notifications

Announcements

No record found.

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

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. 
 
Code:
 
class PP_DataType
{
    public static void main(Args _args)
    {
        Info('Hello World from the Server Side');
    }
}
 
Please give me more insight on this.
 
Thanks!
  • 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!!!

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

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!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 224,528 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans