Hi @Elado,
Microsoft.Extensions.Configuration.ConfigurationExtensions.GetConnectionString(...) returned null.
Perhaps the issue relates to the connection string name. By default, asp.net core stores the connection string in the appsettings.json
file, you can check it and make sure your are using the correct connection string.
Refer to the following screenshot, since the connection name not match, it will show the NullReferenceException:
After modify changing the connection name, the code works well:
And why the H is it opening this CMD window together with Chrome?
About this issue, try to use IIS Express to debug your application, then, the CMD window will disappear.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion