小编Run*_*Ngô的帖子

无法解析Jog文件,Progam.cs asp.net核心中的错误

我在ASP.CORE 2.0中遇到program.cs新版本的问题

在这里我的代码

     public class Program
{
    public static void Main(string[] args)
    {
        BuildWebHost(args).Run();
    }

    public static IWebHost BuildWebHost(string[] args) =>
        WebHost.CreateDefaultBuilder(args)
            .UseContentRoot(Directory.GetCurrentDirectory())
            .UseIISIntegration()
            .UseKestrel()
            .UseStartup<Startup>()
            .UseConfiguration(new ConfigurationBuilder().AddCommandLine(args).Build())
            .Build();

}
Run Code Online (Sandbox Code Playgroud)

当我开始项目时我有一个错误

System.FormatException: 'Could not parse the JSON file. Error on line number '0': ''.'
Run Code Online (Sandbox Code Playgroud)

怎么解决?请帮我

c# asp.net json

5
推荐指数
5
解决办法
7265
查看次数

标签 统计

asp.net ×1

c# ×1

json ×1