ASP.NET Core 5 is the current version of ASP.NET Core, built on top of .NET 5. Use this tag for questions specifically about ASP.NET Core 5 and ASP.NET Core 5's formal specification. Do also include the general [asp.net-core] tag.
Questions tagged [asp.net-core-5.0]
311 questions
18
votes
1 answer
Deploy ASP.NET Core 5 app to existing Azure App Service?
I have an existing Azure App Service running on ASP.NET Core 3.x. I have upgraded the application to today’s release of ASP.NET Core 5. This works fine on my local IIS Express server. When I publish to the application to the App Service using Visual…
![](../../users/profiles/3025856.webp)
Jeremy Caney
- 4,585
- 13
- 32
- 54
10
votes
3 answers
Package Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13 is not compatible with net50 (.NETFramework,Version=v5.0) / win7-x86
I want to update my packages but I got some errors like this:
The error is:
Error NU1202 Package Microsoft.EntityFrameworkCore.Sqlite
5.0.0-rc.1.20451.13 is not compatible with net50 (.NETFramework,Version=v5.0) / win7-x86. …
![](../../users/profiles/1817640.webp)
Said Roohullah Allem
- 6,775
- 8
- 51
- 97
8
votes
1 answer
.NET 5 not compiling to single file executables
Haiya! I'm having an issue regarding trying to compile my .NET 5 application to a single file executable while debugging through Visual Studio.
My CSProject is bellow.
…
![](../../users/profiles/10874844.webp)
FeroxFoxxo
- 145
- 2
- 9
7
votes
1 answer
Purpose of dotnetRunMessages in launchSettings.json
In ASP.NET Core 5 the template provides this in launchSettings.json:
"MyProject": {
"commandName": "Project",
"dotnetRunMessages": "true", // <<<<<<<<
"launchBrowser": true,
"applicationUrl":…
![](../../users/profiles/9971404.webp)
lonix
- 4,787
- 1
- 29
- 74
7
votes
4 answers
NuGet Package Manager attempting to add .NET 5.0 updates to .NET Core 3.1 application
When I go into Tools | NuGet Package Manager | Manage NuGet Package for Solution, it shows me there are 12 updates available.
But when I attempt to update them all, I get errors.
NU1202: Package Microsoft.VisualStudio.Web.CodeGeneration 5.0.0 is not…
![](../../users/profiles/522663.webp)
Jonathan Wood
- 59,750
- 65
- 229
- 380
6
votes
0 answers
.NET Core 5 Angular SSR
I am starting a new Angular website and thought I would start with the new .NET 5 but I am running into a few problems with adding SSR.
I created a new website and added an Angular client using ng new client-app then added the SSR using ng add…
![](../../users/profiles/1601882.webp)
Andy Braham
- 7,763
- 4
- 38
- 44
5
votes
1 answer
What app.UseMigrationsEndPoint does in .NET Core Web Application Startup class
I created a new .NET Core Web Application from Visual Studio and I got this piece of code generated in startup class:
if (env.IsDevelopment())
{
// ***
app.UseMigrationsEndPoint();
// ***
}
What actually does this line…
![](../../users/profiles/8239.webp)
Miroslav Zadravec
- 2,878
- 4
- 18
- 31
5
votes
0 answers
404 Not found for blazor.webassembly.js in Blazor Web assembly app
I created a new "hosted" Blazor web assembly Razor class library and referenced it from a traditional .NET 5.0 MVC app.
The Razor class library components render just fine, however, the blazor client JS file is getting a 404 not found. This is wasm…
![](../../users/profiles/90890.webp)
bbqchickenrobot
- 3,365
- 3
- 38
- 62
5
votes
2 answers
Why does ApiAuthorization not work in .NET 5
I am using .NET Core API Authorization since version 3.1, which was working fine until I upgraded my project to .NET 5. After updating, I have been getting a NullReferenceException.
Here is the code from…
![](../../users/profiles/13940334.webp)
Dotnet Developer
- 51
- 4
5
votes
4 answers
Package Microsoft.AspNetCore.Authentication.JwtBearer 5.0.0 is not compatible with netcoreapp3.1 yet it's targeting net 5.0
I am migrating to .NET 5.0 from .Net Core 3.1.
I keep getting this error message:
Package Microsoft.AspNetCore.Authentication.JwtBearer 5.0.0 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1) / win-x86. Package…
![](../../users/profiles/3252861.webp)
MyDaftQuestions
- 2,987
- 10
- 48
- 93
4
votes
1 answer
An internal failure occurred while running MSBuild - Could not load file or assembly System.Net.Primitives
Using XUnit and Asp.Net Core 5 I have the following test:
public class Tests : IClassFixture {
private readonly ServiceProviderFixture _fixture;
public IndicatorsTests(ServiceProviderFixture fixture) {
_fixture =…
![](../../users/profiles/577805.webp)
Miguel Moura
- 28,129
- 59
- 187
- 356
4
votes
1 answer
Serialization and MD5 hashes failing after upgrading from .Net Core 3.1 to .Net 5
After upgrading one of my applications from .Net Core 3.1 to .Net 5 I am noticing weird failures in the parts of my code dealing with byte array serialization and MD5 hashes.
The code worked just fine in .Net Core 3.1, but after the upgrade to .Net…
![](../../users/profiles/336423.webp)
TGH
- 37,121
- 10
- 94
- 126
4
votes
1 answer
Identity stores with DB Context Factory
On my ASP.NET Core 5.0 project, I changed
services.AddDbContext(...);
to
services.AddPooledDbContextFactory(...);
and now the application is not starting. A subset of errors I got:
Error while…
![](../../users/profiles/9654561.webp)
Vladislav Tryhub
- 59
- 1
4
votes
1 answer
ASP.NET Core 5.0 RouteDataRequestCultureProvider remove default culture in url
I tried to add multi language feature to my asp.net-core project but there are some changes between .net 3.1 and 5.0 in RequestLocalization and i couldn't get what i want. I added Resource files for each language and I used Resource in my razor…
![](../../users/profiles/6296896.webp)
Eren Peksen
- 165
- 9
4
votes
1 answer
How to force ASP.NET Core 5 source code to not be optimized
I'm trying to debug the Antiforgery code in the ASP.NET Core 5 framework.
I have built the code successfully using the instructions in https://github.com/dotnet/aspnetcore/blob/master/docs/BuildFromSource.md using the Debug configuration.
I have…
![](../../users/profiles/2063755.webp)
David Klempfner
- 6,679
- 15
- 47
- 102