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
I had a a similar problem as this in another thread and posted my solution over there: Application Startup Failure with Json read Error. Posting it here as well in case it disappears.
I came across the same problem. In my case, I'd started implementing app secrets but left it halfway through. My secrets.json file was left linked but with invalid JSON.
Check your .csproj to see if a property is set under . If it's set, BuildWebHost() will look through your secrets.json file in '%APPDATA%\Microsoft\UserSecrets\{secretId}', in addition to your appsettings.json file. An error in either file will cause the method to fail, but it won't tell you which file it is.
The solutions in my case were either to remove the property or