85,303 questions
0
votes
0
answers
3
views
.NET 8 Application, IIS ARR Reverse Proxy, and Azure AD: Internal Redirect URI and IIS serverVariables Error
Hello Stack Overflow community,
I have a .NET 8 MVC/Razor Pages hybrid web application that I'm publishing behind an IIS ARR reverse proxy on a DMZ server. The application is running on my internal ...
0
votes
0
answers
9
views
ASP.NET Core Multiple AddAuthentication calls in a plugin Architecture
We are working on an ASP.NET Core app that uses plugin architecture. The main app, which is nothing but a shell, loads assemblies that implement an interface (plugin). Each plugin registers its ...
-1
votes
0
answers
23
views
Post array of elements value, using IFormCollection
i trying to Post array of elements value, using IFormCollection, I am looking for a solution to replace the following code:
["HonorTiltle["+i.ToString()+"]"]
how to get value of ...
0
votes
1
answer
29
views
Blazor Server .NET 9 Preview: CS1061 Error for AddAuthenticationStateSerialization on IServiceCollection
Issue:
I'm developing a Blazor Server application targeting .NET 9. I'm using standard Cookie Authentication and trying to configure authentication state handling for prerendering.
My goal is to ...
0
votes
0
answers
19
views
Setting export interval in Azure Monitor OpenTelemetry for .NET
The Azure Monitor OpenTelemetry Distro supports custom metrics collected by asynchronous (callback-based) instruments like ObservableGauge<> or ObservableCount<>.
How can I configure the ...
0
votes
0
answers
28
views
How to correctly use AddDbContext as scoped and AddDbContextFactory as singleton simultaneously in ASP.NET Core?
I need to use both AddDbContext<MyContext> (scoped) and AddDbContextFactory<MyContext> (singleton) in my ASP.NET Core application. The DbContextFactory will be used in background tasks, ...
0
votes
0
answers
28
views
NTLM authentication first works and then suddenly fails (http.sys, .NET Core 8)
I have an ASP.NET Core 8 web service (which uses http.sys internally) that accepts a request authenticated via NTLM, generates a token and returns it.
After a fresh start of the service, the first 2 ...
0
votes
1
answer
20
views
Publish ASP.NET Core Web API and React App Together (Single Deployment)
I have an ASP.NET Core Web API Project (originally for .NET Core 3.1, recently upgraded to .NET 8) and a React App. These were deployed before as two separate apps, with ASP.NET Core Web API allowing ...
0
votes
0
answers
23
views
Deploy ASP .NET Core MVC (.NET 8 or 9) on Hostinger
I want to deploy an ASP .NET Core MVC project on Hostinger. The project is built on .NET 8 version. It contains only SMTP Server and email authenticatin services. No database required. How can I ...
0
votes
1
answer
42
views
Entity Framework Core tries to insert non-existent column 'PecaIdPeca' even with explicit mapping
I'm facing a problem when saving entities with Entity Framework Core 6 (without migrations, SQL Server database).
Even with the explicit mapping of foreign keys, EF Core tries to insert a column that ...
1
vote
2
answers
59
views
How to Fix Model Binding of StronglyTypedId Struct in ASP.NET Core 9 Minimal API?
I'm building an ASP.NET Core 9 Minimal API where the endpoint I'm working on is receiving form data, but it is failing to bind the value of one of the properties. The property is a strongly typed id ...
0
votes
0
answers
26
views
Handling expired JWT token
I have this in my ASP.NET Core Web API Program.cs:
builder.Services.AddAuthentication(options =>
{
options.DefaultAuthenticateScheme =
options.DefaultChallengeScheme =
options....
0
votes
0
answers
33
views
ASP.NET Core Web API and email verification troubles
Let me give you some context: I know it's a fairly specific question which probably can be answered by googling. Which I've done and followed some guide but I feel like there is something I am doing ...
-2
votes
0
answers
24
views
Handling 401 unauthorized [closed]
I have an ASP.Net Core Web API with this in my middleware:
builder.Services.AddAuthentication(options =>
{
// Some code ommitted here...
options.DefaultSignOutScheme =JwtBearerDefaults....
0
votes
0
answers
37
views
Getting System.IO.IOException: Failed to bind to address https://0.0.0.0:5001
I have a droplet on DigitalOcean, and my application works fine when I use HTTP. However, when I try to enable HTTPS for added security, I encounter the following error when trying to run the ...