title: How to add ASP.NET Membership Provider in a Empty MVC 4 Project Template?
body: <p>I am new in ASP.NET MVC4. I am creating a Empty MVC4 Project Template and trying to add ASP.NET Membership Provider into it but i am not understanding how can I do it. I am searching in Google but all demos are using Internet Application project template.</p>
  
  <p>I know this question is not good but i am already spend two days for it.</p>
  
  <p>Please give a some advice or tutorial for this purpose.</p>
  
  <p><strong>Update</strong> </p>
  
  <p>According to Nesim Razon`s advice i copy and paste forms authentication sections to my empty project from a MVC4 Web Application (Internet Application template). But now i get an exception </p>
  
  <blockquote>
    <p>To call this method, the "Membership.Provider" property must be an instance of "ExtendedMembershipProvider".</p>
  </blockquote>
  
  <pre><code>[InitializeSimpleMembership]
  public class HomeController : Controller
  {
  
      public ActionResult Index()
      {
          WebSecurity.CreateUserAndAccount("Name", "Password"); // Exception is thrown from there.
          return View();
      }
  
  }
  </code></pre>
  
  <p>I am also added the following directive in the Web.config file:</p>
  
  <pre><code>&lt;add key="enableSimpleMembership" value="true" /&gt; 
  </code></pre>