question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on update and install after the successful workload update

See original GitHub issue

I get the same error message about JSON for both install and update. For install, it then gives me the help output which is probably shouldn’t. For update, it gives me the full exception stack.

<snipped> Pack Microsoft.iOS.Templates version 14.5.100-preview.5.889 is already installed. Writing workload pack installation record for Microsoft.iOS.Templates version 14.5.100-preview.5.889... Garbage collecting for SDK feature bands 6.0.100... **System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.** ---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes) in System.Text.Json.dll:token 0x60000da+0x0 at System.Text.Json.Utf8JsonReader.Read() in System.Text.Json.dll:token 0x600028e+0x2a at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) in System.Text.Json.dll:token 0x6000746+0x8 --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex) in System.Text.Json.dll:token 0x6000114+0x8d at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) in System.Text.Json.dll:token 0x6000746+0x10c at System.Text.Json.Serialization.JsonConverter`1.ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) in System.Text.Json.dll:token 0x6000745+0x0 at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) in System.Text.Json.dll:token 0x600033b+0x14 at System.Text.Json.JsonSerializer.ReadUsingMetadata[TValue](ReadOnlySpan`1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable`1 actualByteCount) in System.Text.Json.dll:token 0x600033c+0x26 at System.Text.Json.JsonSerializer.ReadUsingMetadata[TValue](ReadOnlySpan`1 json, JsonTypeInfo jsonTypeInfo) in System.Text.Json.dll:token 0x6000356+0x4c at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options) in System.Text.Json.dll:token 0x600034f+0x22 at Microsoft.DotNet.Workloads.Workload.Install.NetSdkManagedInstaller.GarbageCollectInstalledWorkloadPacks() in dotnet.dll:token 0x60001b5+0x16f at Microsoft.DotNet.Workloads.Workload.Update.WorkloadUpdateCommand.UpdateWorkloads(Boolean includePreviews) in dotnet.dll:token 0x6000156+0xb1 at Microsoft.DotNet.Workloads.Workload.Update.WorkloadUpdateCommand.Execute() in dotnet.dll:token 0x6000154+0x131 at Microsoft.DotNet.Cli.DotNetTopLevelCommandBase.RunCommand(String[] args) in dotnet.dll:token 0x60008ca+0x5e at Microsoft.DotNet.Workloads.Workload.WorkloadCommand.Run(String[] args) in dotnet.dll:token 0x6000146+0x6 at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient) in dotnet.dll:token 0x6000933+0x2e8 at Microsoft.DotNet.Cli.Program.Main(String[] args) in dotnet.dll:token 0x6000931+0x6f

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
marcpopMSFTcommented, Jun 4, 2021

I originally installed using preview 4 ( 6.0.100-preview.4.21255.9 I believe) and then tried the update command using 6.0.100-preview.5.21302.13. Yeah, I figured it might be a preview to preview issue but shared it anyway in case it wasn’t.

0reactions
steveisokcommented, Jul 16, 2021

Yeah, I installed a few, but I don’t recall what version I had.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Visual Studio installation and upgrade issues
Troubleshoot Visual Studio installation and upgrade issues · 1. Check whether the problem is a known issue · 2. Try repairing Visual Studio...
Read more >
You have an new application update to install on your client.
Error on launch Workload automation : You have an new application update to install on your client. Control-M.
Read more >
Failed to pair to Mac with error "Could not install workload ...
After installing the update I can connect successfully to the Mac again. When building the app I get several error messages, ...
Read more >
Problem installing Android workload for MAUI Visual ...
I started a new CometApp project and I get the following error: NU1012 Platform version is not present for one or more target...
Read more >
Error when installing necessary packages on Node js
The upgrade of visualstudio2017-workload-vctools was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2017- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found