Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
1 replies
44 views

I’m working on a .NET 9 Clean Architecture solution with the following structure: API – ASP.NET Core Web API (.NET 9) Application – Application services and business logic Domain – Core domain ...
Solo Dev's user avatar
-3 votes
1 answer
80 views

I have the following 2 classes. MyClass composes MyOtherClasses. Each of them requires different ILogger<foo>: public class MyClass { private readonly ILogger<MyClass> _logger; ...
khteh's user avatar
  • 4,280
0 votes
0 answers
479 views

I am getting the following error in the startup of my ASP.NET Core 9 Web API project: System.TypeLoadException: 'Method 'GetSwagger' in type 'Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator' from ...
Wallace B. McClure's user avatar
1 vote
0 answers
136 views

I'm using the Microsoft.Graph SDK (v5.92.0) in an ASP.NET Core 9 application to search a user's messages. A simple search with a single term works correctly, but when I use a KQL-formatted string as ...
andydnd's user avatar
  • 51
1 vote
1 answer
80 views

In a Blazor web app, I needed to conditionally handle multiple <ValidationMessages> because they're not bound to a single function. At the moment, I have two instances of <ValidationMessages&...
DevQt's user avatar
  • 1,918
0 votes
1 answer
94 views

Originally, the plaintext and images were defined in a single data model class, but the issue is that it fetches everything before it renders on the client-side. Therefore, I decided to separate the ...
DevQt's user avatar
  • 1,918
0 votes
0 answers
115 views

I want to write a Blazor app that uses the IP address to decide between the OpenId Connect authentication method, and Windows authentication with Active Directory. I need Windows authentication for ...
Elias Dobler's user avatar
0 votes
1 answer
94 views

I would like to create a Blazor Web App that first renders components using SSR until the Wasm components can be downloaded then future requests should render the Wasm component. My application seems ...
Mike's user avatar
  • 5,541
0 votes
0 answers
54 views

I am wrapping a TelerikDialog component to create a specifically purposed dialog box. CustomDialog.razor <TelerikDialog @bind-Visible="@this.IsVisible"> <DialogTitle> ...
Gary O. Stenstrom's user avatar
0 votes
2 answers
89 views

I have a micro service app (React + .NET 9) with 2 backend services: Auth service which login user and issue JWT with username + role (on port 8005) Main service which receive this token and based on ...
RinatMegenbaev's user avatar
1 vote
0 answers
24 views

I have this field, EXP_DEL_DATE, which is defined in a class as follows : [BindProperty] [Required(ErrorMessageResourceType = typeof(MsgsResource), ErrorMessageResourceName = MandatoryFld)] [...
Ryan Ong's user avatar
1 vote
0 answers
59 views

I've created a standard ASP.NET Core 9 Aspire application with all projects. All work fine till I use localhost as endpoint for my web app, but obviously, I want to change to local lan IP (192.168.0.2 ...
Denis De Pauli's user avatar
0 votes
1 answer
163 views

I am writing ASP.NET Core 9 application using the minimal API. In this application I have a route that accepts an absolute URL as part of the route. This works when I run the ASP.NET application ...
Marcel V.'s user avatar
  • 192
0 votes
1 answer
124 views

I'm working on a Blazor Server on .NET 9.0 application and trying to integrate basic JavaScript interop before adding external libraries like Algolia InstantSearch. This is my current code setup - ...
ZNAXNOR's user avatar
  • 136
1 vote
1 answer
186 views

I have a .NET 9 web app with Razor Pages and Parcel to build the client application. I ran the command dotnet publish -c Release and the following happened: the client app (in approot) was built and ...
Miguel Moura's user avatar
1 vote
2 answers
490 views

I'm working on a project using the Clean Architecture Template. I'm trying to configure the Endpoints with OpenApi specifications. Here's what I tried to implement: Custom MapGet Extension public ...
Rasik's user avatar
  • 2,529
1 vote
1 answer
79 views

Current Behavior I am using pgvector with ASP.NET Core 9.0 to personalize user experience based on their preferences. I have a posts controller that returns posts (paginated using cursor pagination) ...
Kilany_'s user avatar
  • 36
1 vote
0 answers
281 views

I just upgraded to .NET 9 and I get the following error when I visit the /openapi/v1.json endpoint: [15:28:03 ERR] An unhandled exception has occurred while executing the request. System.Text.Json....
bbqchickenrobot's user avatar
0 votes
1 answer
81 views

I recently created an ASP.BET Core 9 application with Angular and try to dockerize it. It builds successfully, but it does not launch the angular app. This is how I created my project: mkdir <...
Hoang Minh's user avatar
  • 1,282
0 votes
0 answers
265 views

I am receiving the following message in my log file: 'The WebRootPath was not found: C:\inetpub\CondoWebSite\condo11. Static files may be unavailable.' when I try to start my website. Using IIS10 on ...
Guy Gallant's user avatar
0 votes
0 answers
131 views

I have an ASP.NET Core application running under IIS where I configure data protection using this code: var dataProtectionEncryptionCertificate = X509CertificateLoader.LoadPkcs12FromFile(path, ...
Vladimir's user avatar
  • 1,446
0 votes
0 answers
66 views

I have an ASP.NET Core 9 application running as a service. After the latest upgrades of nuget packages, the application crashes periodically with a StackOverflow exception: I tried to reproduce it, ...
Franco Tiveron's user avatar
0 votes
0 answers
79 views

I am trying to create a registration form (view). Whenever I do a HTTP POST with my model, I get an "Invalid ModelState" error on the 2 lists that I have in my view model. All properties are ...
Seb B's user avatar
  • 11
0 votes
2 answers
108 views

My Blazor build (ASP.NET Core 9.0, VS 2022) is correctly generating the scoped selectors for isolated CSS: Program.cs: builder.WebHost.UseStaticWebAssets(); App.razor <head> tag: <link rel=&...
Escher's user avatar
  • 5,835
0 votes
2 answers
243 views

I add a folder to wwwroot in Visual Studio 2022 and Blazor .NET 9. My project is blazor server side, but after debug, this folder doesn't get served. I can't use fonts in the CSS. This my CSS : @font-...
abbas-h's user avatar
  • 450
1 vote
1 answer
73 views

I'm building a .NET 9 application that uses SignalR for realtime messaging. I want to validate incoming requests using a Filter. The following documentation indicates that I should do so by adding the ...
Connor's user avatar
  • 1,146
0 votes
0 answers
196 views

Seems like there is no possible way to enforce/overwrite a package version (or transitive package version). My project is hosted in Azure app service with .NET 8 and props file in the root to enforce ...
foo-baar's user avatar
  • 1,104
0 votes
0 answers
193 views

I've added Aspire 9.0 project to spin API swagger and SQL Server container. I'm able to spin SQL Server container, but not API Swagger URL. I've added project references of both API and database ...
AbdulQASDET's user avatar
0 votes
0 answers
94 views

My ASP.NET Core 9 MVC application runs as a service in Debian and logs into a journal. Program.cs: using Microsoft.Extensions.Hosting.Systemd; var builder = WebApplication.CreateBuilder(args); // ...
Andrus's user avatar
  • 28.2k
2 votes
0 answers
138 views

I'm building a React front end and ASP.NET Core 9 backend webapp. In debugging mode, it works fine, however, when I create Docker containers and run it locally, the front end just won't talk to the ...
Richard's user avatar
  • 569
0 votes
1 answer
64 views

I have an ASP.NET Core 9 application controller that logs messages with warning level in Debian 12: public class ContextLessLogger(ILogger syslog) { public Log() { syslog.Log(LogLevel....
Andrus's user avatar
  • 28.2k
1 vote
1 answer
171 views

I'm using Sqlite in my ASP.NET Core 9.0 app. Whenever I debug in Visual Studio, I get hundreds of these errors in the output panel: 15:43:08:084 Exception thrown: 'Microsoft.Data.Sqlite....
Deane's user avatar
  • 8,815
0 votes
2 answers
224 views

I created a straight-from-the-template Blazor 9 WASM Web App with Authentication type set to Individual Accounts, and Global Webassembly interaction. The only change I made was to swap in Microsoft....
MikeT's user avatar
  • 2,602
-1 votes
1 answer
50 views

publishing my web.app (build with dotnet core wasm standalone - SPA) generates a web.config, that looks good, but IIS cannot open it. f.e. when i click on MIME it shows: The same on other Settings. ...
Kirsten's user avatar
  • 508
1 vote
1 answer
124 views

ASP.NET Core 9 MVC controller reads Debian 12 journal using: public async Task<IActionResult> Syslog(string param = "-r -u eevatest.service --since \"2 days ago\"" ) {...
Andrus's user avatar
  • 28.2k
1 vote
1 answer
300 views

I have an ASP.NET Core 9 application running in a linux docker container. Made using this dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base WORKDIR /app # Install base components RUN apt ...
Mr. JWolf's user avatar
  • 1,415
0 votes
1 answer
174 views

I'm using an IMemoryCache (Microsoft.Extensions.Caching.Memory) in a ASP.NET Core 9 project. I'm storing a List<string> in that cache, and would like to add a value to that list. This seems to ...
BenjiFB's user avatar
  • 4,713
1 vote
1 answer
667 views

Background I'm working with an ASP.NET Core 9 Web API that takes a (potentially large) file upload from one of our client apps, streams it to a temporary file on the server, does some processing, and ...
Tyler Southard's user avatar
-1 votes
3 answers
254 views

I have an ASP.NET Core 9 Web API project with SQL Server 2019, and the connection string is defined in the appsettings.json as shown below: "AllowedHosts": "*", "...
R. Nourmandi's user avatar
3 votes
1 answer
642 views

I am using Microsoft.Extensions.Configuration in ASP.NET Core 9.0 to access configurations from the appsettings.json file: public class MySettings { public int? Foo { get; set; } public string[...
LWChris's user avatar
  • 4,325