asp.net-core-3.0 Questions
4
Solved
How should a single-file .Net Core 3.0 Web API application be configured to look for the appsettings.json file that is in the same directory that the single-file application is built to?
After run...
Pehlevi asked 9/10, 2019 at 15:31
2
Solved
I have a Net Core 2.2 Web Api that I protect with the integration of IdentityServer4. So I started from the tutorial of IDS4 to write the code and there I found the AddJsonFormatters().
I'm triyng...
Confer asked 23/10, 2019 at 14:52
2
Solved
I have tried getting an HTTP-trigger in an Azure Functions 3.0/3.1 app to return the string-representation of enums without any luck. I have tried both Core 3.0 and Core 3.1.
Given this class:
pu...
Aton asked 17/12, 2019 at 9:43
1
Solved
I have a problem with injecting Microsoft.Extensions.DependencyInjection.IServiceScope into my class.
My service implementation:
public class AccountService : IAccountService
{
private readonly IC...
Tick asked 16/5, 2020 at 10:28
1
Solved
I have an existing API project in .net core 3.0 and also using exception middleware to log the exception. Now there is an requirement that we need to implement application insight in our API. I go ...
Leery asked 13/5, 2020 at 10:18
1
I want to bind values to elements from my list in a loop but I cannot find the good solution.
<EditForm Model="@dailyReport" OnValidSubmit="@SubmitDailyReport">
<p>...
Pointless asked 26/2, 2020 at 14:22
2
Solved
My app broke with the 3.0 release of .NET core with reference errors for IdentityDbContext. I'm looking through documentation for Identity on core 3.0 but it implies that IdentityDbContext should b...
Death asked 25/9, 2019 at 1:56
2
Solved
In ASP.NET Core 2.x I was using static method GetExpressionText of ExpressionHelper class for IHtmlHelper<T> extension method:
using Microsoft.AspNetCore.Mvc.ViewFeatures.Internal;
public s...
Adventurism asked 6/9, 2019 at 12:6
2
Solved
(FYI, this is my first Microsoft project of any type and I am not familiar with technologies like proxy servers, etc so my description of the issues may not be the greatest).
I have been working o...
Phenol asked 26/6, 2019 at 17:12
7
Solved
We are trying to deploy our web app after upgrading to .NET Core 3.0, but it keeps getting the "service unavailable" message. If we try to run dotnet from Kudu (dotnet webapp.dll) we get the follow...
Stopping asked 2/10, 2019 at 14:15
2
Solved
I already have a register action
public async Task<IActionResult> OnPostAsync(string returnUrl = null)
{
var useremail = _userManager.Users.FirstOrDefault(u => u.Email.ToLower() == Inpu...
Lowder asked 3/4, 2020 at 15:11
2
Solved
I've always used role authorization in my .net application. However, I'm building a demo app and want to give claims a try. I've always decorated my controller like this where either an admin or Us...
Dissever asked 5/12, 2019 at 19:15
2
I started learning .net core a few days ago and as a start, I created a .netcore project with an inbuilt angular 8 templates.
It has a couple of pages built in angular, like counter and fetches d...
Antepast asked 7/10, 2019 at 21:7
2
Solved
How to log to a file without using third party logger (serilog, elmah etc.) in .NET CORE 3 ASP.NET MVC? I haven't find this information on https://learn.microsoft.com/ru-ru/aspnet/core/fundamentals...
Pareira asked 1/11, 2019 at 13:54
1
Solved
Before Swashbuckle 5 it was possible to define and register a ISchemaFilter that could provide an example implementation of a model:
public class MyModelExampleSchemaFilter : ISchemaFilter
{
publ...
Privative asked 3/3, 2020 at 21:30
2
Solved
I spent many hours trying to find some way to create a new .NET Core 3.1 web app under Windows subscription. I found that if you pick up the Runtime stack as .Net Core 3.1 (LTS) the only option is ...
Resolve asked 8/2, 2020 at 20:0
3
Solved
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 in 3.0, it causes "The collection type 'Newtonsoft.Json.Linq.JToken' is not suppor...
Pithy asked 24/9, 2019 at 3:30
2
Solved
I have an ASP.NET Core 3.1 project. Typically, I register any dependency using the ConfigureServices() method in the Startup.cs class.
But, I find myself having to register lots of dependencies a...
Sigler asked 19/2, 2020 at 23:7
0
We have windows service that hosts web api and does some calculation job in background.
From time to time we get exception:
2019-12-27 11:49:15.525 +01:00 [Error] [Serilog.Log.Write] Unhandled exc...
Atronna asked 27/1, 2020 at 15:58
2
This should be a simple question. I am trying to send complex objects to a client by id from a SignalR Hub. However, I can seem to find any examples that work with .NET Core 3.0.
Do I need to seri...
Brander asked 9/10, 2019 at 16:35
2
Solved
I was trying to migrate the my application from asp.net core 2.1 to 3.0 and there come a first suggested change in program.cs for creation of host.
asp.net core 2.1 program.cs
public static void ...
Salas asked 15/1, 2020 at 5:4
1
Solved
I have recently migrated the ASP.NET Core 2.2 Web API project to ASP.NET Core 3.1 Preview 3. I use the URL based API versioning and Swagger UI 3.0 (Swashbuckle.AspNetCore 5.0.0-rc4). As soon as the...
Emelineemelita asked 25/11, 2019 at 17:28
2
Solved
After migrating to .NET Core 3.0. I'm having issues configuring swagger.
Following is my configuration.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCom...
Nagual asked 24/9, 2019 at 16:6
2
Solved
Having upgraded from core 2.2 to 3.1 I cannot get RouteDataRequestCultureProvider working fully.
Routing works but razor tag helpers are ignoring the culture and route attributes that use culture....
Campney asked 10/12, 2019 at 13:8
3
I'm trying to get a delete operation to work on an entity with a composite key on a Razor page using ASP.NET Core 3.0 and Entity Framework 6. The entity in question is a CourseAssignment whose comp...
Carboni asked 2/1, 2020 at 21:18
© 2022 - 2024 — McMap. All rights reserved.