asp.net-core-3.0 Questions
4
Solved
In ASP.NET Core 2.x I used standard routes registation Configure method of Startup class to register fallback route for SPA application using MapSpaFallbackRoute extension method from Microsoft.Asp...
Stereotaxis asked 6/9, 2019 at 12:57
5
Solved
My question is simple.
I have an ASP.net core 3.0 app, I added secrets using visualstudio and pasted my secrets into the secret file normally.
Then inside my Program.cs, I added a call to addusers...
Benenson asked 15/11, 2019 at 10:18
3
Solved
I want to create a custom class for my SignInManager, so I've created a class that inherts from SignInManager<> as follows:
public class ApplicationSignInManager : SignInManager<Applicati...
Mendicant asked 18/3, 2019 at 21:55
3
I updated an ASP.NET Core 2.2 API to ASP.NET Core 3.0 and I am using System.Json:
services
.AddMvc()
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddJsonOptions(x => {})
I ...
Scenography asked 15/11, 2019 at 22:15
2
Solved
I am getting a cors policy error whenever I use Authorize attribute on my user controller.I am using Angular 8 as my front-end framework and asp .net core 3.0.0 as my backend.It is working fine if ...
Tetraspore asked 9/2, 2020 at 11:48
3
Solved
I migrated my project from ASP.NET Core 2.2 to ASP.NET Core 3.0. Now I get this exception. In ASP.NET Core 2.2 it was using FromSql(); now it is using FromSqlRaw(). I am calling my procedure using ...
Strader asked 29/9, 2019 at 7:35
3
My custom middleware appears to be causing some sort of conflict with my blazor server-side page. The sample middleware in short checks for a bool status and if true redirects to the counter page p...
Boatman asked 19/10, 2019 at 17:22
3
I am trying to implement JsonPatch on .NET Core 3.0 Preview 9 web api.
The model:
public class TestPatch
{
public string TestPath { get; set; }
}
The web api endpoint:
[HttpPatch()]
public as...
Chemoreceptor asked 12/9, 2019 at 21:27
5
Solved
How to serialize Enum fields to String instead of an Int in ASP.NET MVC Core 3.0? I'm not able to do it the old way.
services.AddMvc().AddJsonOptions(opts =>
{
opts.JsonSerializerOptions.Conv...
Gunner asked 28/11, 2019 at 21:2
11
Solved
Using [FromBody] string content on an ApiController in ASP.NET Core 3.0 returns a validation error:
{"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title":"One or more validation e...
Tread asked 28/9, 2019 at 22:3
5
Solved
In ASP.Net Core 3.0 Preview 7, I tried to write some code as follows:
public void Configure(IApplicationBuilder app) {
app.MapWhen(context =>
context.Request.Path.StartsWithSegments(
new Path...
Provincialism asked 7/8, 2019 at 14:46
7
Solved
In my .net Core 3.0 API the [JsonIgnore] Attribute is not working as excepted. Im using System.Text.Json
Instead of the old Newtonsoft.Json
When I'm using my resource that returns a list of Objects...
Dynah asked 12/2, 2020 at 9:7
3
Solved
I've recently updated my API project to ASP.NET Core 3. Since then, [JsonIgnore] attributes are not working:
public class Diagnostico
{
[JsonIgnore]
public int TipoDiagnostico { get; set; }
[J...
Springer asked 22/10, 2019 at 7:44
4
Solved
Hi I am trying to host a multiple .net core 3 application using the same application pool in IIS
But were receiving ACME 500 error on the other application and only first one hosted is working
Does...
Alyse asked 31/10, 2019 at 1:11
6
I created a new ASP.NET Core 3.0 Web application and selected the Model-View-Controller option. I wanted to add Blazor Server side, so I added the below to the Startup.cs file.
services.AddServerS...
Lactescent asked 24/9, 2019 at 21:21
7
Solved
I am trying seed the database with some data, using ASP.NET CORE 3.0 and EF Core.
I've created my DbContext and according to documentation, online sources, or even EF Core 2.1 questions (I could n...
Faustena asked 7/2, 2020 at 15:36
4
Solved
I recently upgraded an .Net Framwork AspNet MVC app to a AspNet Core 3 MVC app and I'd like the ability to change a view, save, and refresh my browser window to see the changes. Now it appears I ha...
Clamshell asked 2/10, 2019 at 14:35
4
I have migrated an existing API project from 2.2 to 3.0 based on guidelines from this page.
Thus I've removed:
app.UseMvc(options =>
{
options.MapRoute("Default", "{controller=Default}/{actio...
Roseliaroselin asked 21/10, 2019 at 14:42
4
Solved
I'm using NSwag for .NET Core 3.1. Everything works correctly.
I can't determine how to change "My Title" (which is the info title) to something else.
Here is the swagger page:
Here is my reg...
Jolly asked 7/4, 2020 at 1:30
3
Stil on same project where I had issue DI Registration service type .net core 3.0. Now when that is fixed I'm getting new error.
Now my code looks:
services.AddDbContext<ApplicationIdentityDb...
Suffragan asked 21/11, 2019 at 11:17
1
Solved
My apologies for the silly question, but I don't see a good example of how can I specify a specific format for DateTime in JSON serialization for .net core 6.
The old way, net core 3.
// in the Con...
Atilt asked 29/4, 2022 at 15:52
2
Solved
Im migration a classic C# MVC project to .NET Core and I have a Utility Project where I need to get access of App_Data folder.
I already create in this new project my App_Data folder outside wwwro...
Schilling asked 14/1, 2020 at 18:25
4
Solved
I need ti use this AutoFac in ASP core 3.0
When I use this code in startu up:
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services.AddControllers();
return services...
Holdover asked 27/9, 2019 at 11:18
8
Solved
I'm preparing a migration from ASP.NET Core 2.2 to 3.0.
As I don't use more advanced JSON features (but maybe one as described below), and 3.0 now comes with a built-in namespace/classes for JSON, ...
Cavite asked 1/7, 2019 at 11:40
4
Solved
I created a sample dotnet core 3.0 Web API project and did the following changes,
Create a Model class TestData
using System.Runtime.Serialization;
namespace WebApplication17.Models
{
[DataCon...
Volsci asked 16/9, 2019 at 23:3
© 2022 - 2024 — McMap. All rights reserved.