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)
-
0
Why you did not execute add-migration and update-database command? Are you just testing? Did you check logs in web site?
-
0
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.
-
0
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.
-
0
BTW, I get this exception before calling LoginAsync. It' got when application is starting. So, I can see it from logs.