Creating login with Linkedin API Oauth 2.0 - Marked: CreateWebHostBuilder, error: Could not parse the JSON file.

Milan 1 Reputation point
2021-02-01T16:57:49.337+00:00

Ms visual studio 2017, updated .net frameworks (ms studio 2017 v15.9.31) .NET framework v4.8
The Solution won´t run. The IDE is marking CreateWebHostBuilder, and showing error: Could not parse the JSON file. But the Json launchsettings doesn´t seem to be the problem.
The full detailed error:
{System.FormatException: Could not parse the JSON file. Error on line number '2': '{ {'. --->
Newtonsoft.Json.JsonReaderException: Invalid property identifier character: {. Path '', line 2, position 4. at Newtonsoft.Json.JsonTextReader.ParseProperty() at Newtonsoft.Json.JsonTextReader.ParseObject() at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options) at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader) at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.ParseStream(Stream input) at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream) --- End of inner exception stack trace --- at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load() at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors) at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() at LinkdinAuth.Program.Main(String[] args)
in C:\Users.....\LinkdinAuth\Program.cs:line 17}

Thanks for anyone who has the time to help me.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,353 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,686 Reputation points Microsoft Employee
    2021-02-02T06:46:53.41+00:00

    @Milan Thank you for your question. I would re-tag your question but unfortunately, Linked-In is not supported on Microsoft Q&A.

    We would suggest you post your Linked-In API question on their support forum for further assistance.

    Thank you for your understanding.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.