title: AuthenticationManager.SignIn() isn't present in AuthenticationManager class
body: <p>I'm trying to use the method from the <code>AuthenticationManager</code> class <code>SignIn()</code>;</p>
  
  <p>Here is how I'm doing it:</p>
  
  <pre><code>AuthenticationManager.SignIn(identity);
  </code></pre>
  
  <p>But it says that <code>SignIn</code> doesn't exists there...</p>
  
  <p>The path to the <code>AuthenticationManager</code> is:</p>
  
  <pre><code>System.Net.AuthenticationManager
  </code></pre>
  
  <p>Am I missing something here???</p>
  
  <p>Edit: Here is the mini version of the controller:</p>
  
  <pre><code>using Microsoft.AspNet.Identity;
  using Microsoft.Owin.Security;
  using System;
  using System.Linq;
  using System.Security.Claims;
  using System.Web.Mvc;
  using WebApplication2.Models;
  using WebApplication2.ViewModels;
  
  [HttpPost]
  [ActionName("Login")]
  public ActionResult Login(LoginViewModel model)
  {
      if (ModelState.IsValid)
      {
          string userName = (string)Session["UserName"];
          string[] userRoles = (string[])Session["UserRoles"];
  
          ClaimsIdentity identity = new ClaimsIdentity(DefaultAuthenticationTypes.ApplicationCookie);
  
          identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, userName));
  
          userRoles.ToList().ForEach((role) =&gt; identity.AddClaim(new Claim(ClaimTypes.Role, role)));
  
          identity.AddClaim(new Claim(ClaimTypes.Name, userName));
  
          AuthenticationManager.SignIn(identity);
          return RedirectToAction("Success");
      }
      else
      {
          return View("Login",model);
      }
  }
  </code></pre>
  
  <p>Edit: new error arised:</p>
  
  <pre><code>The following errors occurred while attempting to load the app.
  - No assembly found containing an OwinStartupAttribute.
  - No assembly found containing a Startup or [AssemblyName].Startup class.
  To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config.
  To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.
  </code></pre>