Skip to main content
0 votes
0 answers
41 views

I'm trying to log error objects as JSON in my ASP.NET Core 9 Web API. I am following the wiki in the NLog documentation: Structured logging. I have NLog.Web.AspNetCore v6.0.5 as a dependency. In ...
NeartCarp's user avatar
  • 227
0 votes
0 answers
15 views

I have an ASP.NET Core Web API. I am using Swagger, so when I run my app in debug mode, the Swagger page appears and I can test my endpoints. I also have authentication, and crucially, I'm ...
bornfromanegg's user avatar
1 vote
1 answer
51 views

I have an ASP.NET Core Web API controller action that returns a 201 Created response with a custom type, and I also have a custom exception handler that writes ProblemDetails for 400–500 errors. The ...
Ucrainex's user avatar
Best practices
0 votes
4 replies
69 views

I'm building an e-commerce application with ASP.NET Core Web API using Entity Framework Core and ASP.NET Core Identity. I have a BaseEntity class that tracks audit information (who created and last ...
Jinn's user avatar
  • 1
-4 votes
0 answers
33 views

I deployed a REST API in IIS, whuch is developed by .net core but I can't access the Swagger UI from the local as well as remote Also, when I call the API using Postman or cURL, I only get a 200 ...
sathya 's user avatar
0 votes
0 answers
49 views

I am working on a small ASP.NET Core 8 Web API using the Minimal API template. I'd like to be able to skip my ApiKeyAuthenticationHandler for the health check (/health path) to avoid noise in the log ...
Karnalta's user avatar
  • 538
Best practices
0 votes
4 replies
137 views

I have an application which was written years ago in VB.NET. Recently I migrated it to .NET framework 4.8. This change was smooth. Now I am planning to migrate it to an ASP.NET Core 10 Web API using C#...
Jyothish Bhaskaran's user avatar
0 votes
1 answer
67 views

I had used LibreOffice portable a while back to convert documents to PDF and I cannot for the life of me figure out how to do it again. Every time I run this in IIS Express for development I am ...
Qiuzman's user avatar
  • 1,843
0 votes
0 answers
43 views

I am building a full-stack project where: Backend: ASP.NET Core Web API (created in Visual Studio 2022) Frontend: Angular project (created separately in VS Code) Git: I initialized Git from Visual ...
Suparna Dhara's user avatar
0 votes
1 answer
55 views

I have an ASP.NET Core 8 Web API with a Swagger page using Nswag + OpenAPI3. I also have an OAuth2 security implementation which is working great. Thanks to AspNetCoreOperationSecurityScopeProcessor ...
K0D4's user avatar
  • 2,673
1 vote
1 answer
94 views

I'm getting this error : Unable to create a 'DbContext' of type 'AppDbContext'. The exception 'Object reference not set to an instance of an object.' was thrown while attempting to create an instance....
Eray Bal's user avatar
3 votes
1 answer
78 views

I have written an ASP.NET Core Web API method that works fine when testing with Swagger (on localhost in debug mode, while now the API has been published, and my URL is non-local). The API entry point ...
erict's user avatar
  • 1,541
Best practices
1 vote
1 replies
81 views

We have a strong use case, and I’d like your suggestion on how to solve an issue we're facing. We built a banking system using ASP.NET Core that allows users to view their accounts. Here's how it ...
Issa Saman's user avatar
0 votes
0 answers
69 views

Issue with Auth princliples not being able to write to response in blazor app through an injected service LoginModal: @using Microsoft.AspNetCore.Components.Authorization @using MtgDeckBuilderServices ...
CoolDaemonX's user avatar
0 votes
1 answer
59 views

I'm trying to read a PDF as MemoryStream, and copy pages from that PDF to a new one. I'm using iText PdfReader and PdfWriter. var ms = new MemoryStream(); using PdfReader pdfReader = new ...
Marwan Hashem's user avatar

15 30 50 per page
1
2 3 4 5
650