Why is this happening when we make a call to the AccountApiController.Register() method?
This error can also occur in case of incorrect connectionString. Check if connectionString is valid (no typo etc.).
connectionString