title: Non static method requires a target
body: <pre><code>private PMS_USERS currUser;
  private bool validateUserName()
  {
      dbContext = new PmsEntities();
      var validateUser = dbContext.PMS_USERS.Where(p=&gt; p.LOGICALREF != currUser.LOGICALREF).Where(p=&gt; p.USERNAME == currUser.USERNAME);
      return !validateUser.Any();
  }
  </code></pre>
  
  <p>Hello,
  I got an error while validating on my new user register form.</p>
  
  <p>My <code>PMS_USERS</code> table has no record(<code>null</code>). I also tried checking for <code>null</code> control(s) for <code>currUser</code>.</p>
  
  <p>What am I missing?</p>
  
  <p>Error is : </p>
  
  <blockquote>
    <p><em>Non static method requires a target</em></p>
  </blockquote>