Object reference not set to an instance of the object

Solution

This exception occurs when you try to insert null value into a not null column in DB e.g in primary key column or any other not null column. Insert the value in that column and the issue will be resolved 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at WordPress.com.

Up ↑

Create your own website, free on WordPress.com.Create your own website.
Start free