object reference not set to.an instance of an object

Waheed Murad 1 Reputation point
2020-05-03T20:29:42.67+00:00

Dear Friends i have a problem

I create a new user in Sql server 2014

After that i got this error at my ASP.NET MCV login form

object reference not set to an instance of an object

Please guide me ho i solved this problem

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,947 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Leon Laude 85,651 Reputation points
    2020-05-03T20:32:06.943+00:00

    Hi,

    Q&A currently supports the products listed in right-hand pane (more to be added later on).

    You can reach the experts in the dedicated SQL Server & ASP.NET MVC forums over here:
    https://social.technet.microsoft.com/Forums/en-US/home?category=sqlserver

    https://forums.asp.net/1146.aspx/1?MVC

    (please don't forget to mark helpful replies as answer)

    Best regards,
    Leon

    0 comments No comments

  2. Dave Patrick 426.1K Reputation points MVP
    2020-05-03T20:33:01.05+00:00

    QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.

    https://forums.asp.net/1146.aspx/1?MVC

    (please don't forget to mark helpful replies as answer)

    0 comments No comments

  3. Evan Chatter 11 Reputation points
    2020-12-22T07:05:47.74+00:00

    An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message "object reference not set to an instance of an object" means that you are referring to an object the does not exist or was deleted or cleaned up. It's usually better to avoid a NullReferenceException than to handle it after it occurs. To prevent the error, objects that could be null should be tested for null before being used.

    if (mClass != null)
    {
    // Go ahead and use mClass
    mClass.property = ...
    }
    else
    {
    // Attempting to use mClass here will result in NullReferenceException
    }

    0 comments No comments