I have some issues with the program.cs file, with the version of ASP.NetCORE 2.0
Here\'s my code
public class Program
{
public static void Main(st
There is a possibility it might happen when appsettings.json is not properly formated
In my case, I had the below configuration and got the error
{
"ConnectionStrings": {
"TransferDBConnection":
"Server=INGBTCPIC5DT04D;Database=TransferDB;Trusted_Connection=true;
},
***{***
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*"
}
ideally, it should be one extra { cause this problem
{
"ConnectionStrings": {
"TransferDBConnection":
"Server=INGBTCPIC5DT04D;Database=TransferDB;Trusted_Connection=true;"
},
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*"
}