Top "Asp.net-core-3.0" questions

Use this tag for questions specifically related to ASP.

How to set json serializer settings in asp.net core 3?

json serializer settings for legacy asp.net core applications were set by adding AddMvc().AddJsonOptions(), but I don't use AddMvc() …

c# json asp.net-core .net-core asp.net-core-3.0
ASP.NET Core 3.0 not showing on Visual Studio 2019

I want to test the new Blazor server-side framework (aka Razor Components). I installed Visual Studio 2019 RC, and then the .…

asp.net-core .net-core visual-studio-2019 .net-core-3.0 asp.net-core-3.0
Where did IMvcBuilder AddJsonOptions go in .Net Core 3.0?

I've just upgraded my ASP web API project from .Net core 2.0 to 3.0. I was using services.AddMvc() .AddJsonOptions(options =>…

c# asp.net asp.net-core json.net asp.net-core-3.0
'IHostingEnvironment' is obsolete

I updated my ASP.NET Core project to .NET Core v3.0.0-preview3, and I now get: Startup.cs(75,50,75,69): warning CS0618: …

asp.net-core .net-core asp.net-core-3.0
Application is running inside IIS process but is not configured to use IIS server .NET Core 3.0

I have migrated our application from .NET Core 2.2 to version 3.0. Actually I created the new application in 3.0 from scratch and …

asp.net-core-3.0
ASP.NET Core 3.0 [FromBody] string content returns "The JSON value could not be converted to System.String."

Using [FromBody] string content on an ApiController in ASP.NET Core 3.0 returns a validation error: {"type": "https://tools.ietf.org/…

c# json asp.net-core asp.net-core-mvc asp.net-core-3.0
.NET Core 3.0: Razor views don't automatically recompile on change

According to the documentation, Razor views should, by default, recompile on change on local environments for ASP.NET Core 3.0. However, …

c# asp.net-core razor-pages asp.net-core-3.0
'Could not load type 'Microsoft.AspNetCore.Mvc.MvcJsonOptions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json, Version=3.0.0.0

I'm using netstandard2.1 library in my netcoreapp3.0 web application. When adding my service in Startup, I'm getting the below error: …

c# json.net asp.net-core-mvc asp.net-core-3.0 .net-standard-2.1
ASP.NET Core 2.2 -> 3.0 upgrade. env.IsDevelopment() not found

I upgraded an existing 2.2 project to 3.0. I copied the new code for Program/Startup from a new 3.0 project to my …

asp.net-core asp.net-core-3.0
JsonResult(object) causes "The collection type 'Newtonsoft.Json.Linq.JToken' is not supported."

I upgraded an existing ASP.NET Core 2.2 project to 3.0. I have a method that returns JSON which worked in 2.2, but …

asp.net-core asp.net-core-3.0