Aspnetcore.docs: Application cannot launch

Created on 25 Jan 2020  Â·  2Comments  Â·  Source: dotnet/AspNetCore.Docs

After 'dotnet run' I get this error, do you know what might be causing it?

Unhandled exception. System.FormatException: Could not parse the JSON file.
---> System.Text.Json.JsonReaderException: '0xC2' is invalid after a value. Expected either ',', '}', or ']'. LineNumber: 10 | BytePositionInLine: 40.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeNextTokenUntilAfterAllCommentsAreSkipped(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextTokenOrRollback(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, Utf8JsonReader reader, MetadataDb& database, StackRowStack& stack)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedBytes) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options)
at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
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.Json.JsonConfigurationProvider.Load(Stream stream)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Extensions.Configuration.FileConfigurationProvider.HandleException(ExceptionDispatchInfo info)
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.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at ContosoUniversity.Program.Main(String[] args) in C:\VSC\4390\A3 Tutorial #3\ContosoUniversity\Program.cs:line 14


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Source - Docs.ms support-request

Most helpful comment

Hello @LosPresidente ... probably just what the error says ... the JSON file being read is malformed. Recommend that you post to a support channel for help. We don't provide general programming support here. We just work on docs.

All 2 comments

Hello @LosPresidente ... probably just what the error says ... the JSON file being read is malformed. Recommend that you post to a support channel for help. We don't provide general programming support here. We just work on docs.

First of all - you guys are fast, I appreciate that. And sorry to intrude the comment section.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nenmyx picture nenmyx  Â·  3Comments

Rick-Anderson picture Rick-Anderson  Â·  3Comments

wgutierrezr picture wgutierrezr  Â·  3Comments

royshouvik picture royshouvik  Â·  3Comments

StevenTCramer picture StevenTCramer  Â·  3Comments