简体   繁体   中英

c# sql visual studio 2019

I accidentally deleted the main window .aspx in working c# in webforms application then it started showing this error how can I fix it.

Severity Code Description Project File Line Suppression State Suppression State
 Error      
Unknown build error, 'Object reference not set to an instance of an object.'    Test

Have you added the file to your solution? Adding it to the original folder might not be enough. Go to solution explorer and do the following:

  • Click "Show all files"
  • Right-click on the file you want to include.
  • Click "Include in Project"

Once you've done this, try to build the solution and see if it gets rid of the error. If that doesn't work, I'd probably say your issue lies elsewhere.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM