title: Can we add membership table to use in c# windows form application
body: <p>Firstly I want to confirm that Can I use membership table in c# windows form app? Because when I'm using it, it gives me error on the following line </p>
  
  <pre><code>  MembershipCreateStatus mcs = new MembershipCreateStatus();
    MembershipUser user = Membership.GetUser(txtusername.Text, false);
          if (user != null)
          {
              Msg.Text = "The user name " + Server.HtmlEncode(txtusername.Text) + " already exist. Please Choose another";
              return;
          }
    MembershipUser users = Membership.CreateUser(txtusername.Text, txtpassword.Text, txtusername.Text, "Who am i?", "Patient", true, out mcs);
  </code></pre>
  
  <p>it says "the name server does not exist in the current context". Secondly when I'm omitting this part and writing the following code</p>
  
  <pre><code>Msg.Text = "The user name " + txtusername.Text + " already exist. Please Choose another";
  </code></pre>
  
  <p>then after debugging it says following
  <a href="https://i.stack.imgur.com/KSST8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KSST8.png" alt="enter image description here"></a></p>