C# Asp.net身份登录无法登录

C# Asp.net身份登录无法登录,c#,asp.net,asp.net-mvc,login,asp.net-identity,C#,Asp.net,Asp.net Mvc,Login,Asp.net Identity,我刚刚在我的网站上测试了登录功能。最近登录一直工作良好,但现在我不断收到错误 Login failed for user 'Dolapo'. This session has been assigned a tracing ID of 'e25c9fb4-3ec4-4ce1-9f7f-c01988c856a7'. Provide this tracing ID to customer support when you need assistance.` 在线 var user =

我刚刚在我的网站上测试了登录功能。最近登录一直工作良好,但现在我不断收到错误

Login failed for user 'Dolapo'.
This session has been assigned a tracing ID of 'e25c9fb4-3ec4-4ce1-9f7f-c01988c856a7'.        Provide this tracing ID to customer support when you need assistance.`
在线

var user = await UserManager.FindAsync(model.UserName, model.Password);`
然而,我尝试用用户Ben而不是Dolapo登录

任何帮助都将不胜感激

登录方法

登录页面


我检查了与数据库的连接字符串,但密码不正确

请验证连接字符串中的用户名和密码,以确保其与数据库的凭据匹配。

是否尝试清除缓存以确保输入数据以启动新会话?这应该是现成的。你是怎么修改的?
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
        {
            if (ModelState.IsValid)
            {
                var user = await UserManager.FindAsync(model.UserName, model.Password);
                if (user != null)
                {
                    await SignInAsync(user, model.RememberMe);
                    return RedirectToLocal(returnUrl);
                }
                else
                {
                    ModelState.AddModelError("", "Invalid username or password.");
                }
            }

            // If we got this far, something failed, redisplay form
            return View(model);
        }
@model BiteWebsite.Models.LoginViewModel

@{
    ViewBag.Title = "Log in";
}
<!-- This is the login page it allows the use to logon on the website using their username and email to check their existence -->
<h2>@ViewBag.Title.</h2>
<div class="row">
    <div class="col-md-8">
        <section id="loginForm">
            @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
            {
                @Html.AntiForgeryToken()

                <hr />
                @Html.ValidationSummary(true)
                <div class="form-group">
                    @Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })
                    <div class="col-md-10">
                        @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <!--This checkbox is used to allow the system to remember the user when they login-->
                        <div class="checkbox">
                            @Html.CheckBoxFor(m => m.RememberMe)
                            @Html.LabelFor(m => m.RememberMe)
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type="submit" value="Log in" class="btn btn-default" />
                    </div>
                </div>
                <p>
                    <!-- A link is provided to the registration page if the user doesn't have an account -->
                    @Html.ActionLink("Register", "Register") if you don't have a account.
                </p>
            }
        </section>
    </div>

</div>