No of visitors who read this post: 270
Category: Database
Type: Question
Author: Gran wesner
No votes yet

I’m using ASP.NET programming codes and know how to deal with it. However, I don’t have idea why this error message is appearing while trying to work on Touchpaper Services Database. I have doubt over some NULL values, and this is what I’m wondering about. What would be the cause of this error?

Error:

Server Error in '/Touchpaper.Framewor.Web' Application.
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 instance of an object.

Source Error:
An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using the
exception stack trace below.

How to resolve this issue?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#

From the screenshot of the error, it seems that it is due to something that is not from the system. There is an exception that is not being dealt carefully here.

  1. What you can do is to first figure out where the problem is in the code. You can clearly see the line number where it is pointing and where the actual error is.
  2. Make a try catch block there and see what it is throwing as an exception.
  3. Sometimes it’s possible that it is returning a null variable or something like that that causes the problem.
  4. If this is the problem then deal with it by replacing it with a more suitable one.