Questions tagged [asp.net-core-3.0]
Use this tag for questions specifically related to ASP.NET Core 3.0, in addition to using the 'ASP.NET Core' tag.
asp.net-core-3.0
849
questions
18
votes
8
answers
19k
views
ASP.NET Core - Assets file doesn't have a target for .NETCoreApp 3.1
I'm trying to compile my application to run on Core 3.0 (NOT 3.1)
And I'm able to compile and run fine locally, but when I do a publish it gives me:
Error NETSDK1005: Assets file 'C:\dev...\...
38
votes
6
answers
37k
views
I am getting "code challenge required" when using IdentityServer4
I am trying to redirect to IdentityServer for authorization, and getting "code challenge required" in redirect URL.
An error message shows invalid_request with code challenge required, and also my ...
12
votes
3
answers
9k
views
Will a BackgroundService always run in a new Thread
So in the MSDN for ASP.Net Core it shows you how to create Background Tasks with hosted services. There is even a specific paragraph which explains how you can create a Background Queue.
Now my ...
98
votes
5
answers
83k
views
'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: 'IHostingEnvironment' is
obsolete: 'This type is obsolete and will be ...
0
votes
0
answers
32
views
How to Resolve IWebHostEnvironment in .NET Core 8.0? [duplicate]
I'm working on migrating a project from ASP.NET Core 5.0 to .NET Core 8.0. In my project,
using Test_Site_1.Application.Interfaces.Contexts;
using Test_Site_1.Common.Dto;
using Test_Site_1.Domain....
32
votes
6
answers
20k
views
How do you add Tailwind CSS into a Blazor App?
In particular, I'm using Blazor (server hosted) with ASP.NET Core Preview 8. I tried adding it using LibMan, but that seems to be more about downloading files from a CDN. I'd like to introduce ...
1
vote
1
answer
3k
views
Long running task api call from logic app to avoid timeout bad request response after many retiries
I have an azure api app exposing some business apis.
I need to implement Long running task strategy because I want to call one of these apis from my Logic App because that api takes more than 2 ...
3
votes
0
answers
697
views
Proper way to handle Nullable References and RequiredAttribute on model binding
In my web-api controllers I post query model (for paging, filtering and sorting) for my entities.
I have nullable references enabled solution-wise (all projects in csproj)
The base classes are:
...
28
votes
6
answers
19k
views
blazor.server.js file not found
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....
15
votes
7
answers
10k
views
Bundler & Minifier generating "Object reference not set to an instance of an object" error
I trying bundle and minify my CSS and JS files in ASP.NET Core 3.0 with BuildBundlerMinifier.Core.
Also Installed Bundler & Minifier extension for Visual Studio 2019.
When I try Debug the project,...
13
votes
1
answer
7k
views
Asp.Net Core 3.0 CreatedAtAction returns "no route matches the supplied values" when Action name ends with "Async"
I had a strange problem with CreatedAtAction, if my method name ends with "Async" keyword, I get an 500 error "no route matches the supplied values" when I return CreatedAtAction from my Add method. ...
1
vote
0
answers
131
views
Release Mode Cannot connect to Database Whereas Debug Mode connect to in .Net Core 3.0
I created n-tier architure project in .Net Core 3.0 and I used SQL Server 2017.
In debug mode it works well but after I publish it and transferred to server it doesn't work*.
I installed VS2019 in ...
2
votes
5
answers
6k
views
Method UseSqlServer not recognized in options when registering database under .NET Core 3.0
According to the docs, the context can be added using the following syntax.
services.AddDbContext<Context>(
options=>options.UseSqlServer("beep"));
It works in previous versions of Core 2....
51
votes
21
answers
97k
views
Unable to connect to web server 'IIS Express'
I am using Microsoft Visual Studio 2019 Community preview, version 16.4.0 Preview 1.0. I just updated to Windows 10 Pro Version 1903 OS build 18362.418. With an ASP.NET Core 3 web app project (Blazor ...
64
votes
10
answers
64k
views
Ignore property when null using the new Net Core 3.0 Json
When using JSON.Net in ASP.Net Core 2.2 I was able to ignore a property when its value was null when serializing to JSON:
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public DateTime? ...