Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Text.Encodings.Web nuget package required on server project. #21054

Closed
rob-github opened this issue Dec 27, 2020 · 5 comments · Fixed by #21057
Closed

System.Text.Encodings.Web nuget package required on server project. #21054

rob-github opened this issue Dec 27, 2020 · 5 comments · Fixed by #21057
Assignees
Labels
Blazor doc-enhancement Pri0 Urgent priority SignalR Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

@rob-github
Copy link

rob-github commented Dec 27, 2020

I had to add System.Text.Encodings.Web nuget package to server project to get this to work.
You might mention that in the tutorial.
Thanks for providing it anyway :)


Document Details

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

@dotnet-bot dotnet-bot added ⌚ Not Triaged SignalR Source - Docs.ms Docs Customer feedback via GitHub Issue labels Dec 27, 2020
@guardrex guardrex self-assigned this Dec 27, 2020
@rob-github rob-github changed the title I had to add System.Text.Encodings.Web nuget package to server project to get this to work. You might mention that in the tutorial. Thanks for providing it anyway :) System.Text.Encodings.Web nuget package required on server project. Dec 27, 2020
@guardrex
Copy link
Collaborator

Hello @rob-github ... I've seen this come up a few times, but I can't repro it, and the posters never say exactly what bit of API in the app is requiring it ...

Can you say what API is requiring it in the app? ... perhaps paste in the method to clarify it so that I can try and repro this again.

@guardrex
Copy link
Collaborator

guardrex commented Dec 27, 2020

Also, please specify more environment details: Framework version? SDK version? Platform (OS)?

... and which set of specific IDE instructions did you follow ... VS, VS4Mac, VSCode, or CLI?

@BrennanConroy
Copy link
Member

This is a bug when users use System.Text.Json 5.0 in a netcoreapp3.1 project.
Issue: dotnet/runtime#45560

@guardrex
Copy link
Collaborator

guardrex commented Dec 27, 2020

Thx @BrennanConroy ... Although Eric gave it a 5.0.x milestone, it's easy for me to surface this to readers in a NOTE [UPDATE] section (use of a section will compose better than a NOTE) and open a follow-up issue cross-linked to the engineering issue to revert the NOTE section later. It's probably the best course of action given that @rob-github is the third reader to open a docs issue on it.

@rosdi
Copy link
Contributor

rosdi commented Jun 29, 2021

I just had the same problem. I just updated my dependencies and suddenly the system won't run on the server anymore with this error (it runs fine in Visual Studio).

Adding System.Text.Encodings.Web 5.0.1 explicitly into my ASP.NET Core 5.0 project makes the error goes away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blazor doc-enhancement Pri0 Urgent priority SignalR Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants