asp.net-core-3.0 Questions

3

Solved

asp.net core 3 allows to set FallbackPolicy to make the endpoints secure by default: services.AddAuthorization(options => { options.FallbackPolicy = new AuthorizationPolicyBuilder() .Requir...
Marginal asked 18/12, 2019 at 8:15

2

Solved

For this question, it is relevant to know that I do have ASP .NET Core experience, do have REST experience but I am a newbee when it comes to gRPC. In addition, I am working on Windows right now. ...
Nickeliferous asked 30/7, 2019 at 17:58

5

I have an ASP.NET Core 3.0 project that uses .NET Core 3.0. I have recently upgraded VS 2019 to version 16.4.1. I use Web Publish from Visual Studio to deploy the application on various environmen...

1

Solved

I have a json from here https://api.nasa.gov/insight_weather/?api_key=DEMO_KEY&feedtype=json&ver=1.0 which looks like: { "782": { "First_UTC": "2021-02-06T17:08:1...
Toed asked 18/2, 2021 at 11:14

6

I created an ASP.NET Core 3.0 Web Application with the default template in Visual Studio 2019 Preview 2.2 and tried to inject an ILogger in Startup: namespace WebApplication1 { public class Start...
Ursulaursulette asked 7/2, 2019 at 10:11

2

Solved

In asp.net core 2.2 I used to have the following, var jsonSettings = new JsonSerializerSettings { ContractResolver = new SubstituteNullWithEmptyStringContractResolver() }; services.AddMvc(opt...
Searles asked 28/11, 2019 at 5:28

3

Solved

I've been following the IHostedService documentation in order to run a background task using the .NET Core MVC framework. I would like the service to start automatically in IIS, however, it doesn'...
Petterson asked 25/1, 2020 at 0:45

2

Solved

I attempted to build this application myself but, have hit several stumbling blocks along the way. I am thinking that it may be best to step back and take a larger look at what I am trying to creat...
Geronimo asked 23/7, 2019 at 22:8

2

Solved

I am building a sample login razor component for an Asp.net core 3.0 Blazor Server-Side app. Whenever the code reaches the SignInAsyc method it just appears to hang or lock-up, as the code ceases f...
Aurangzeb asked 15/10, 2019 at 5:19

3

Solved

In my project that was core 2.2 i have standard service for returning Razor View as string (i needed it to generate pdf in my client written in WPF): public class RaportService : IRaportService ...
Pibgorn asked 24/11, 2019 at 20:32

2

Solved

After updating to ASP.NET Core 3.0 from 2.2, I am receiving the error: No route matches the supplied values This appears right after executing CreateAsync(). It is triggered by the CreatedAtAc...
Exterminatory asked 1/10, 2019 at 11:34

1

Solved

You have a main component and inside the main component you have many sub-components You want to refresh a single subcomponent, rather than the entire screen of the main component, is this possibl...
Dominquedominquez asked 7/12, 2019 at 14:19

2

Solved

I publish my ASP.Net Core 3.1 Server like this: dotnet publish --configuration Release --runtime win7-x64 -p:PublishTrimmed=true --output c:\MyServer What I get in c:\MyServer is a lot of intern...
Garrido asked 21/2, 2020 at 0:43

5

Solved

Below code to replicate error for some extensions I'm trying to create in a new ASP.NET Core 3.0 API project. using ClassLibrary1; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Ho...
Catiline asked 30/9, 2019 at 8:19

2

I just moved to ASP.NET Core 3.0 and it seems that either model validation with inheritance is broken, or I am missing something. When I post the following model with IlVal00 = null, it says: t...

6

Solved

I'm using netstandard2.1 library in my netcoreapp3.0 web application. When adding my service in Startup, I'm getting the below error: 'Could not load type 'Microsoft.AspNetCore.Mvc.MvcJsonOption...

2

I would like to do in Blazor something that I normally do in React: create a reusable component that internally uses other child components, with the ability to pass those child components as param...

2

I'm in the process of porting a Asp.Net Core Website targeting the full framework to a website that targets Asp.Net Core 3. In that process I have hit a snag. The website references the Newtonsoft...
Palaestra asked 13/12, 2019 at 17:2

9

Solved

According to the documentation, Razor views should, by default, recompile on change on local environments for ASP.NET Core 3.0. However, my project doesn't do this locally. If I change a view and r...
Earthshaker asked 8/2, 2019 at 21:11

3

Solved

I have 2 methods to handle HTTP GET requests, first one for int type input and the other one for string type input. //GET : api/Fighters/5 [HttpGet("{id}")] public async Task<ActionResult<Fi...
Handstand asked 29/9, 2019 at 16:19

1

As in the below picture the Purposes string of IDataProtectionProvider is taking default values of my project physical root path. My problem is when i encrypt data from my local host and the same c...
Holtz asked 26/11, 2019 at 11:41

1

Solved

I was not able to get my client side validation method to fire after setting up the validation according to various sources. After lots of struggle I found that changing the order of when the scrip...

1

I am trying to set up IdentityServer4 with MVC client. Everything works fine until I want to add ASP Identity. When I added code to use SQL server and Identity, after sucessfull login Identity ser...
Illinois asked 31/10, 2019 at 19:35

3

Solved

when I am in debug, to change the default port, I modify the launchSettings.json file, and change the port "WebApplication1": { "commandName": "Project", "launchBrowser": true, "launchUrl": "we...

2

I am trying to define a MapAreaControllerRoute() that routes to multiple Areas. In ASP.NET Core 3.0, however, there is the areaName: parameter that needs to be set, thus restricting each route to a...
Wofford asked 12/10, 2019 at 9:40

© 2022 - 2024 — McMap. All rights reserved.