Unofficial Content
  • This documentation is valid for:

Object reference not set to an instance of an object

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an
 
Reasons/Solutions:
this is a general error, once it occurs with an object it may occur with any other one. 
It may occur with Web transaction without confirm button or with any button that was not initialized (e.g.: a webcomponent).
Anther case may occur because of a database connection problem. E.g.: working with SQLServer handler, if the user access is setup by Windows (“Use Windows Authentication”) and the required rights are missing, the error occurs. This case is solved by adding the ASPNET user to the users group or changing the access to “SQL Authentication”.
If the error specifies the program line where it crashes, edit the CS in this line and verify the operation. 

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant