use something like "ILogger" and like these to control and see the error
use something like "ILogger" and like these to control and see the error