Skip to main content

Notifications

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 6,423 User Group Leader on at
    Regarding Runnable class issue
    Hi,
     
    Try to restart visual studio .
     
    BR

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,217 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,202 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans