TMG is right; there are non-async solutions available, and in this particular situation, they are the simplest....In general, though, you can construct a task and wait for it synchronously when you only have access to an async version of a function and you can't change the method's implementation to be async....Thus, in place of...IdentityResult re...
OK! I discovered the cause. The problem occurs when I assign a value to the key parameter of a new entity of type Province in the Main method. This fixes the issue:...context.Provinces.Add(new Models.Province
//ID = 1,
Name = "TEST"
...However, the reason I'm so irate is because the exception that was raised obscures the actual prob...