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

Notifications

Announcements

No record found.

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)
  • André Arnaud de Calavon Profile Picture
    300,982 Super User 2025 Season 2 on at

    Hi Theja,

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

  • GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Theja Pachipala Profile Picture
    20 on at

    Yes always

  • Theja Pachipala Profile Picture
    20 on at

    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.

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    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

  • Suggested answer
    Theja Pachipala Profile Picture
    20 on at

    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.

  • GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Theja Pachipala Profile Picture
    20 on at

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

  • Komi Siabi Profile Picture
    13,099 Most Valuable Professional on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 659 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans