{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3256","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3256/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3256/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3256/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3256","id":311562101,"number":3256,"title":"The LoginAsync()  throw exception when AccessFailedCount > 0 ","user":{"login":"nguyenminhtien1411","id":7038302,"avatar_url":"https://avatars1.githubusercontent.com/u/7038302?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenminhtien1411","html_url":"https://github.com/nguyenminhtien1411","followers_url":"https://api.github.com/users/nguyenminhtien1411/followers","following_url":"https://api.github.com/users/nguyenminhtien1411/following{/other_user}","gists_url":"https://api.github.com/users/nguyenminhtien1411/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenminhtien1411/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenminhtien1411/subscriptions","organizations_url":"https://api.github.com/users/nguyenminhtien1411/orgs","repos_url":"https://api.github.com/users/nguyenminhtien1411/repos","events_url":"https://api.github.com/users/nguyenminhtien1411/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenminhtien1411/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ismcagdas","id":4133525,"avatar_url":"https://avatars1.githubusercontent.com/u/4133525?v=4","gravatar_id":"","url":"https://api.github.com/users/ismcagdas","html_url":"https://github.com/ismcagdas","followers_url":"https://api.github.com/users/ismcagdas/followers","following_url":"https://api.github.com/users/ismcagdas/following{/other_user}","gists_url":"https://api.github.com/users/ismcagdas/gists{/gist_id}","starred_url":"https://api.github.com/users/ismcagdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismcagdas/subscriptions","organizations_url":"https://api.github.com/users/ismcagdas/orgs","repos_url":"https://api.github.com/users/ismcagdas/repos","events_url":"https://api.github.com/users/ismcagdas/events{/privacy}","received_events_url":"https://api.github.com/users/ismcagdas/received_events","type":"User","site_admin":false},"assignees":[{"login":"ismcagdas","id":4133525,"avatar_url":"https://avatars1.githubusercontent.com/u/4133525?v=4","gravatar_id":"","url":"https://api.github.com/users/ismcagdas","html_url":"https://github.com/ismcagdas","followers_url":"https://api.github.com/users/ismcagdas/followers","following_url":"https://api.github.com/users/ismcagdas/following{/other_user}","gists_url":"https://api.github.com/users/ismcagdas/gists{/gist_id}","starred_url":"https://api.github.com/users/ismcagdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismcagdas/subscriptions","organizations_url":"https://api.github.com/users/ismcagdas/orgs","repos_url":"https://api.github.com/users/ismcagdas/repos","events_url":"https://api.github.com/users/ismcagdas/events{/privacy}","received_events_url":"https://api.github.com/users/ismcagdas/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/milestones/93","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/milestone/93","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/milestones/93/labels","id":3098832,"number":93,"title":"v3.6","description":"","creator":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars1.githubusercontent.com/u/1210527?v=4","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":25,"state":"open","created_at":"2018-02-08T06:15:08Z","updated_at":"2018-04-17T14:56:03Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2018-04-05T10:50:16Z","updated_at":"2018-04-18T10:51:12Z","closed_at":null,"author_association":"NONE","body":"Exception throw when I try to login with valid non-admin (**AbpUserBase.AdminUserName**) user.\r\n\r\nIf I set **shouldLockout** param to false, the method works fine.\r\n\r\n`var loginResult = await _logInManager.LoginAsync(usernameOrEmailAddress, password, tenancyName, shouldLockout: false);`\r\n\r\n* Abp version: 3.5.0\r\n* Base framework: ASP.NET Core with full .NET framework\r\n* Exception message and stack trace:\r\n\r\n```\r\nSystem.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out\r\n   at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__174_0(Task`1 result)\r\n   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.<ExecuteAsync>d__17.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable`1.AsyncEnumerator.<BufferlessMoveNext>d__10.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.<ExecuteAsync>d__7`2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable`1.AsyncEnumerator.<MoveNext>d__9.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Linq.AsyncEnumerable.<FirstOrDefault_>d__165`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.TaskResultAsyncEnumerable`1.Enumerator.<MoveNext>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Linq.AsyncEnumerable.SelectEnumerableAsyncIterator`2.<MoveNextCore>d__7.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Linq.AsyncEnumerable.AsyncIterator`1.<MoveNext>d__10.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.<MoveNext>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<ExecuteSingletonAsyncQuery>d__23`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase`3.<FirstOrDefaultAsync>d__19.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Abp.Domain.Repositories.AbpRepositoryBase`2.<GetAsync>d__21.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__5`1.MoveNext() in D:\\Github\\aspnetboilerplate\\src\\Abp\\Threading\\InternalAsyncHelper.cs:line 120\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Abp.Authorization.Users.AbpUserStore`2.<GetUserNameFromDatabaseAsync>d__88.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Abp.Authorization.Users.AbpUserManager`2.<UpdateAsync>d__47.MoveNext() in D:\\Github\\aspnetboilerplate\\src\\Abp.ZeroCore\\Authorization\\Users\\AbpUserManager.cs:line 349\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Abp.Authorization.AbpLogInManager`3.<CreateLoginResultAsync>d__38.MoveNext() in D:\\Github\\aspnetboilerplate\\src\\Abp.ZeroCore\\Authorization\\AbpLoginManager.cs:line 224\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n   at Abp.Authorization.AbpLogInManager`3.<LoginAsyncInternal>d__37.MoveNext() in D:\\Github\\aspnetboilerplate\\src\\Abp.ZeroCore\\Authorization\\AbpLoginManager.cs:line 201\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Abp.Authorization.AbpLogInManager`3.<LoginAsync>d__36.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__5`1.MoveNext() in D:\\Github\\aspnetboilerplate\\src\\Abp\\Threading\\InternalAsyncHelper.cs:line 120\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at AbpCore.Controllers.TokenAuthController.<GetLoginResultAsync>d__19.MoveNext() in F:\\Work\\FPT\\Working Copy\\HRIS\\Source\\hr-is\\Trunk\\Src\\hris\\src\\AbpCore.Web.Core\\Controllers\\TokenAuthController.cs:line 213\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at AbpCore.Controllers.TokenAuthController.<Authenticate>d__13.MoveNext() in F:\\Work\\FPT\\Working Copy\\HRIS\\Source\\hr-is\\Trunk\\Src\\hris\\src\\AbpCore.Web.Core\\Controllers\\TokenAuthController.cs:line 82\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at lambda_method(Closure , Object )\r\n   at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__23.MoveNext()\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/382346563","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3256#issuecomment-382346563","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3256","id":382346563,"user":{"login":"ismcagdas","id":4133525,"avatar_url":"https://avatars1.githubusercontent.com/u/4133525?v=4","gravatar_id":"","url":"https://api.github.com/users/ismcagdas","html_url":"https://github.com/ismcagdas","followers_url":"https://api.github.com/users/ismcagdas/followers","following_url":"https://api.github.com/users/ismcagdas/following{/other_user}","gists_url":"https://api.github.com/users/ismcagdas/gists{/gist_id}","starred_url":"https://api.github.com/users/ismcagdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismcagdas/subscriptions","organizations_url":"https://api.github.com/users/ismcagdas/orgs","repos_url":"https://api.github.com/users/ismcagdas/repos","events_url":"https://api.github.com/users/ismcagdas/events{/privacy}","received_events_url":"https://api.github.com/users/ismcagdas/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T10:51:11Z","updated_at":"2018-04-18T10:51:11Z","author_association":"MEMBER","body":"@nguyenminhtien1411 just tried with your project and it worked for me.\r\n\r\n![image](https://user-images.githubusercontent.com/4133525/38927765-775a1f50-430f-11e8-8fee-9aa49be96c10.png)\r\n\r\n![image](https://user-images.githubusercontent.com/4133525/38927782-7faf306e-430f-11e8-9686-caf4e42406f8.png)\r\n\r\nCan you also include a backup of your database ?\r\n"}}
{"actor":{"display_login":"ismcagdas"}}