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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Object reference is not set to an instance of an object getting while clicked on button > clicked method > view code

(0) ShareShare
ReportReport
Posted on by 56

Hi all,

Can you please let me know , i am open the form "PROJPROPOSALINVOICEDETAILS". This is in Application suite model.

7823.a1.jpg

when i clicked on view code. Getting an error

1172.a2.jpg

Kindly let me know how to reslove?

Thanks!

I have the same question (0)
  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Some questions, please answer all of them.

    1) Does it happen only on this form/method or on others?

    2) Does Visual Studio restart solve it?

    3) When did it start happening?

    4) Has it worked correctly before?

    5) Have you done some changes, such as updates in the system after it last worked ok?

  • @rp@n Profile Picture
    56 on at

    See nikoloas, i first time login in to VS

    and happening with others form also

  • André Arnaud de Calavon Profile Picture
    306,697 Super User 2026 Season 2 on at

    Hi Arpan,

    Did you open Visual Studio with right click and the option 'Run as administrator'? Have you also tried to restart the machine?

  • Navneeth Nagrajan Profile Picture
    2,669 Super User 2026 Season 2 on at

    Hello @rp@n,

    In addition to what Nikolaos asked, looks like your Application Suite model is broken or is there a reference to the Application Suite model is broken.


    Questions:
    1. Did you build the model and see if there were are any errors?
    2. Are there any custom objects referencing the Application Suite model?


    Thanks,
    Navneeth Nagrajan | Dynamics 365 Technical Consultant 

  • Sukrut Parab Profile Picture
    71,741 Moderator on at

    Try performing  full build and iisreset  as well .

    Also see if suggestion from below link helps

    stackoverflow.com/.../visual-studio-error-object-reference-not-set-to-an-instance-of-an-object-after

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 258 Most Valuable Professional

#3
Anton Venter Profile Picture

Anton Venter 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans