Skip to main content

Questions tagged [asp.net-core]

ASP.NET Core is an open-source, cross-platform framework for building web applications. Use this tag for questions about ASP.NET Core applications. Use a specific version tag when your question is specific to a particular version of ASP.NET Core.

0 votes
0 answers
36 views

ASP.NET CORE Web API does not replace env settings on IIS

I have an API hosted in IIS. In local testing, with very scenario, it works perfectly. When deployed to IIS, the appsettings.uat1.json did not get loaded and some environment variables are not changed....
Wasyster's user avatar
  • 2,437
0 votes
0 answers
36 views

Issue with authentication in Blazor

I am working with Blazor authentication. I have implemented a way to authenticate a user through an API controller that signs in the user and returns the current state of the user with http requests. ...
Lemon Grab's user avatar
0 votes
1 answer
24 views

How to show description in Swagger of an IFormFile

Unfortunately I cannot add any description to Swagger when using an IFormFile: [Route("service")] public class WebServiceController : Controller { /// <summary> /// An upload /...
Rod's user avatar
  • 673
1 vote
0 answers
32 views

ASP.NET Core Web API : authentication users files

I'm working on an ASP.NET Core 6 Web API project where users upload their own files, and these files are stored in folders corresponding to their IDs (GUIDs) on the same Linux server. To serve these ...
Elchin Heydarov's user avatar
0 votes
1 answer
24 views

Windows authentication in DevTunnels

I have a blazor server application with windows authentication. Server configuration: builder.Services.AddAuthentication(HttpSysDefaults.AuthenticationScheme); builder.WebHost.UseHttpSys(options =>...
Justyna's user avatar
  • 103
0 votes
0 answers
24 views

In one of the cshtml files,namespaces can not be found

I am using visual studio 2022 .net 6. All the other cshtml files within the same project are not showing any issues. Only in one cshtml file, the namespaces are not able to be found. All the ...
Hchavan's user avatar
2 votes
1 answer
32 views

How to make .NET 8's minimal identity APIs work with a global Authorization FallbackPolicy?

My API is enforcing a global authorization policy to require authenticated users on all endpoints, unless they explicitly specify another policy or opt out via [AllowAnonymous]. This works fine with ...
Saeb Amini's user avatar
  • 23.8k
1 vote
1 answer
38 views

How to pass a Guid to a property on a Tag Helper in ASP.NET Core

I have a custom TagHelper I need to pass a Guid to, but I get errors when I pass the value. How can I pass in a Guid? TagHelper: [HtmlTargetElement("assets:signin", Attributes = "...
Stein Lundbeck Tech's user avatar
0 votes
2 answers
65 views

Dropdown Menu Goes Beyond Right Side of Screen

I'm trying to create a multi-level dropdown menu using Bootstrap. By default, the dropdowns should align to the right side, but if there's not enough space, they should switch to align to the left. ...
Yuvraj Jadhav's user avatar
0 votes
0 answers
38 views

Identity Web Application Times Out K8 Cluster

I have the following setup: 6 (tiny) APIs using .NetCore 8 Deployed onto a k8 cluster on Digital Ocean Use Dapr for messaging between the APIs (this creates a sidecar for each API service) There is ...
matt sharp's user avatar
-3 votes
0 answers
60 views

Why is my code not returning any records? Even though there are rows found. (Entity Framework Core)

using Binus.WS.Pattern.Entities; using Microsoft.EntityFrameworkCore.Metadata; using SSG5.C1.BSQWebAPI.Model; using System; using System.Collections.Generic; using System.Globalization; using System....
JUVÉ's user avatar
  • 1
0 votes
1 answer
30 views

How can I write a HotChocolate middleware that acts after UseFiltering?

I am building a GraphQL interface in an existing dotnet webapi using HotChocolate v13. I want to write a middleware in a field that has UseFiltering(), which as far as I know is a middleware as well. ...
Alberto Cruz's user avatar
0 votes
0 answers
23 views

UserManager: GenerateEmailConfirmationTokenAsync() Invalid Token

I have gone through most posts on this topic, none seem to help/work, so resorting to posting my own question... Scenario: In my ASP.net App I have a setting where I allow the user to enable or ...
AxleWack's user avatar
  • 1,891
0 votes
2 answers
57 views

Double Response Issue with JWT Authentication in ASP.NET Core

I'm facing an issue with my JWT authentication in ASP.NET Core where I'm getting duplicate responses. Here's the relevant code for the JWT authentication: public static class JwtAuthExtension { ...
Deepak Verma's user avatar
0 votes
1 answer
53 views

Many-to-many relationship update in EF Core

In my two classes I created a many-to-many relationship: public class Author { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } [DisplayName(&...
Ehsan Sadeghi's user avatar

15 30 50 per page
1 2
3
4 5
8