If you have access to the webserver or application server then your first option is to go to the event viewer and look at the application error logs. These tools are made to make your life easier. You do not need to choose any one of these. There are lot of tools available to help you record these logs in your code. If you explore these logs you will able to see which page or object is problematic. c# Object reference not set to an instance of an object Investigation & Fix: Object reference not set to an instance of an object Application LogsĮvery good web application record error or warning logs. Now it could be deleted, does not get initialized or an object or resource is moved to a different location. The main cause of this error is the object or resource your code is looking for does not exists. In this blog, let’s explore different ways to analyse and fix this error. This error is very generic and does not give you a lot of information on what went wrong. As a developer lot of time, you come across ” Object reference not set to an instance of an object ” error and sometimes along with the yellow screen of death.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |