I've tried to install the package Microsoft.AspNet.Identity and adding
using Microsoft.AspNet.Identity
in my code but I still have the error.
You need to install package Microsoft.AspNet.Identity.Core