asp.net-core-3.0 Questions
7
Solved
I've just upgraded my ASP web API project from .NET Core 2.0 to 3.0. I was using
services.AddMvc()
.AddJsonOptions(opts => opts.SerializerSettings.ContractResolver
= new DefaultContractResolv...
Billybillycock asked 13/4, 2019 at 14:58
5
Solved
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 then copied source code files. Everything looks great but when I tr...
Lions asked 24/9, 2019 at 12:28
6
Solved
json serializer settings for legacy asp.net core applications were set by adding AddMvc().AddJsonOptions(), but I don't use AddMvc() in asp.net core 3. So how can I set global json serialization se...
Mayhem asked 15/10, 2019 at 10:0
4
Solved
I am following this guide https://learn.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.0&tabs=visual-studio to migrate to .NET Core 3.
I am getting the compilation error:
...
Menorca asked 20/11, 2019 at 14:19
5
Solved
I am creating a new web site from an empty ASP.NET Core 2 template and following the Microsoft Entity Framework Tutorial to help me get setup. At one point it has you add the code:
services.AddDbC...
Talishatalisman asked 7/12, 2017 at 19:27
2
Solved
I'm trying to figure out how to properly replace app.UseMvc() code that use to be part .net core 2.2. The examples go so far as to tell me what are all the codes I can call but I'm not yet understa...
Esta asked 18/10, 2019 at 17:41
7
We are experiencing the following error when build ASP.NET Core MVC application which is recently migrated from .NET Core 2.2 to 3.0:
The tag helper 'input' (or 'textarea' or any other) must no...
Pokpoke asked 12/11, 2019 at 9:36
4
Solved
I wrote a website that will do a SSO from Discord. I am trying to do a login system using only that by way of cookies. I seem to not be able to set the cookie and return User.Identity.IsAuthenticat...
Signorino asked 14/1, 2020 at 22:45
2
Solved
To disable server side pre-render on asp.net core preview 3, you just needed to comment @(await Html.RenderComponentAsync<MyApp>()).
Since asp.net core preview 4, when you comment this line,...
Decennary asked 19/4, 2019 at 15:28
2
As per Authentication and authorization for SPAs, I have created a new SPA with support for API authorization. You can view this on GitHub.
In order to support integration tests, I have added a ne...
Rackley asked 12/9, 2019 at 4:52
2
I have a web application that is written in .net core MVC, a standard, "old school" web application using model/view/controller pattern. In this app I have a few complex forms which change based on...
Ashlar asked 25/5, 2020 at 6:56
3
I have some ASP.NET Core middleware (an AuthorizationHandler) that needs to access the body of the request to perform an authorization check. I use the new pipelines APIs to access the request body...
Inflatable asked 17/2, 2020 at 20:2
3
Solved
I want to create a unit test to ensure that a method is logging an error using xUnit and Moq. This code worked in ASP.NET Core 2.1:
//Arrange
var logger = new Mock<ILogger<MyMiddleware>&g...
Infante asked 8/10, 2019 at 22:31
5
Solved
This is basically the same question as How do I set or remove the Default Response Content Type Using SwashBuckle, but for .NET Core 3.0
By default in .NET Core 3.0, you configure a web api with s...
Pavlov asked 21/11, 2019 at 10:59
3
Solved
I have an asp.net core 3.0 website and I am trying to use FileProvider. I created the below based on an example, but I keep getting the error
InvalidOperationException: Could not load the embedde...
Uncrown asked 9/1, 2020 at 17:22
6
I upgrade my MVC Core Project from 2.2 to 3.0 with
microsoft
and change many recommended here: https://stackoverflow.com/
It works fine when run it in Local, but when I want publish in local folder...
Contentious asked 13/11, 2019 at 22:18
3
Solved
I keep getting the following error between postman and IdentityServer 4
Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: 'empty...
Jocular asked 29/6, 2020 at 19:43
2
Solved
I am using .NET Core 3.0.100 ; Microsoft Visual Studio Community 2019 Preview Version 16.4.0 Preview 1.0 ; Blazor-server (official release).
I am trying to add Authentication and Authorization to m...
Agosto asked 2/10, 2019 at 14:53
2
Solved
I am currently implementing some services based on the design of the UserManger of Asp.Net Core Identity.
In the Implementation i wondered how the usermanager is possible to support cancellation i...
Iolanthe asked 8/11, 2019 at 9:8
5
I am working on a fresh install of Windows 10 Pro (10.0.18362) and trying to get Visual Studio 2019 setup and configured for .NET Core 3.1 Web Development but am running into several issues.
I cre...
Prospector asked 16/1, 2020 at 18:27
2
I have an application in ASP.NET Core 2.0. I want to upgrade it to ASP.NET Core 3.0. How can I do that?
Delarosa asked 20/2, 2019 at 5:51
3
Solved
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 existing 2.2 project. It worked, but the IsDevelopment() below:
public void Configu...
Clathrate asked 23/9, 2019 at 21:33
4
Solved
I'm upgrading my ASP.NET Core app to V3, and using Visual Studio 2019 for development / debugging. The process has been smooth except for this:
public void Configure(…..
app.UseWebpackDevMiddlewa...
Franko asked 24/9, 2019 at 15:19
18
Solved
I want to test the new Blazor server-side framework (aka Razor Components).
I installed Visual Studio 2019 RC, and then the .Net Core 3.0 preview 2, following this official tutorial.
After the in...
Junket asked 6/3, 2019 at 21:53
2
I'm trying to get the Asp.Net Identity login working through Blazor in the Visual Studio template application it still uses Razor Pages and MVC to login, but can only get it to work on the event On...
Proverbs asked 26/6, 2019 at 22:42
© 2022 - 2024 — McMap. All rights reserved.