web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Object reference not set to an instance of an object

(0) ShareShare
ReportReport
Posted on by 20

I have deployed new VM's where we moved from GIT to TFS, so I have moved all the customized models to new dev server and build server.

Issue is when I'm trying to access Extension classes, I'm not able to open it. Getting : 

Object reference not set to an instance of an object

All the other classes are working fine, there is no build errors and sync success.

And yes, I'm able to view and access metadata for same classes in file explorer.

Tried by repairing and reinstalling the VS and all the extensions are up to date.

pastedimage1669755955336v1.png

I have the same question (0)
  • Komi Siabi Profile Picture
    13,032 Most Valuable Professional on at
    RE: Object reference not set to an instance of an object

    You might want to confirm that your model does not have any broken reference.

    Try to update the model parameters and see if any error pops up.

  • Theja Pachipala Profile Picture
    20 on at
    RE: Object reference not set to an instance of an object

    Version .21 and both build, and dev server is in same versions. Yes, extensions are working fine in build server.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Object reference not set to an instance of an object

    What is the version where you have taken all this models?

    Is the extension classed opening on the environment where you have taken the models from?

    Thanks,

    Girish S.

  • Suggested answer
    Theja Pachipala Profile Picture
    20 on at
    RE: Object reference not set to an instance of an object

    Thanks for the suggestion, Bharani.

    Yes, I do replace the standard and extension class from the environment which is working fine.

    Before that stopped all the services mentioned above, once copied the classes, restarted the services and started VS as admin, refreshed the models and started building for customized models, no errors. And sync the database no errors.

    Still not able to access extension classes, and another all classes I'm able to access like event handlers, DP, contracts, controllers.

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: Object reference not set to an instance of an object

    Hi Theja,

    Can you please check if you can take latest of the code? And build and then build and sync? If not stop all the related services like Management reporting services, Batch and DIXF, IIS, www. Then try get latest build and sync.

    Please let me know if these are possible. Also check the log in even viewer.

    Thanks,

    Bharani

  • Theja Pachipala Profile Picture
    20 on at
    RE: Object reference not set to an instance of an object

    Yes standard class is working fine and I'm able to view the code. Tried by adding to Project and by building, there is no errors. Still not able to access extension class.

  • Theja Pachipala Profile Picture
    20 on at
    RE: Object reference not set to an instance of an object

    Yes always

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Object reference not set to an instance of an object

    Hi Theja Pachipala,

    Check whether its opening standard extension class without this error.

    Also Just add your extension class to project - Right click the class and try opening with xml editor. Check whether its opening in xml.

    Thanks,

    Girish S.

  • André Arnaud de Calavon Profile Picture
    297,423 Super User 2025 Season 2 on at
    RE: Object reference not set to an instance of an object

    Hi Theja,

    Have you opened Visual Studio with the 'Run as administrator' option?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 777 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 630 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 602 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans