Could not parse the JSON file ,Error in Progam.cs asp.net core

后端 未结 11 1210
星月不相逢
星月不相逢 2021-02-07 19:42

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         


        
11条回答
  •  面向向阳花
    2021-02-07 20:28

    Is your appSettings.json file (or whatever config you are using) formatted properly? WebHost.CreateDefaultBuilder will not be able to parse it correctly if there are invalid characters at the start. I saw this issue when a copy/paste added a space at the beginning of the file.

提交回复
热议问题