Base solution for your next web application
Open Closed

Exception is not thrown when invoke UserManager.LoginAsync #89


User avatar
0
lcyhjx created

Hi,

I use the sample module zero. And I make some changes for entity mode, but i do not execute add-migration and update-database command. So normally, if i invoke a service with DB operation, an exception will be thrown. But in this scenario, when I invoke UserManager.LoginAsync, no exception, no result, just break down, and user do not know what happened.


4 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Why you did not execute add-migration and update-database command? Are you just testing? Did you check logs in web site?

  • User Avatar
    0
    lcyhjx created

    Yes, I was testing if exception in UserManager.LoginAsync, what will happen. I have checked thie logs in website – logs.txt. But cannot find the exception in log file.

  • User Avatar
    0
    hikalkan created
    Support Team

    I get exception when I change model but not added migration. One more, can you try to call LoginAsync in a try/catch and check if it's catched.

  • User Avatar
    0
    hikalkan created
    Support Team

    BTW, I get this exception before calling LoginAsync. It' got when application is starting. So, I can see it from logs.