Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
2 replies
52 views

We use .NET 8 currently and what I've encountered is a bit annoying and interesting topic at the same time and I would need some advice on how to do it right. Our application can download log files ...
004-Bond's user avatar
0 votes
0 answers
48 views

I am converting DOCX to PDF using Syncfusion DocIO. On .NET Framework 4.6 (Windows), all logos render correctly. After migrating the same code to NET Core 8 on Linux, only PNG/JPG images work, while ...
Rushikesh's user avatar
0 votes
1 answer
60 views

I am trying to install and configure the HangFire to make background service in an ASP.NET Core 8 MVC app. I have been installing all packages but when I try to make the configurations it throwns an ...
FernandoPaiva's user avatar
2 votes
0 answers
85 views

I'm responsible for maintaining a public ASP.NET Core 8 Web API. One endpoint accepts POST data like this: { "xid": 12345, "message": "Hello, world!" } On the ....
Nat Webb's user avatar
  • 738
1 vote
0 answers
125 views

I am developing a website on .NET 8.0. There is no problem in my Visual Studio IIS (I mean, my local development environment), but when I publish my website (to publish my website, I follow this path :...
mesut yıldırım's user avatar
1 vote
1 answer
116 views

There is this old thread about how deal with unhandled exceptions (How can I make something that catches all 'unhandled' exceptions in a WinForms application?) Now I integrated this in an ASP....
monty's user avatar
  • 9,013
0 votes
0 answers
105 views

In my ASP.NET Core 8 web app, I am trying to log the messages to Splunk. Splunk shows all the messages in a single message (nested JSON, very difficult to read messages). I want to store only the ...
Terry's user avatar
  • 95
1 vote
1 answer
149 views

I have an ASP.NET Core 8 project and followed this article: https://learn.microsoft.com/en-us/aspnet/core/grpc/json-transcoding-binding?view=aspnetcore-8.0 import "google/api/annotations.proto&...
arch's user avatar
  • 49
1 vote
1 answer
300 views

During local development, my ASP.NET Core 8 Minimal API project is operating without any issues. Swagger opens at /swagger, all endpoints are visible, and everything is testable directly from the user ...
Zeel Gabriels's user avatar
0 votes
2 answers
709 views

I'm trying to launch the "Weather Forecast" template solution but encountering an issue I can't resolve. Here's what I've done: First, I installed Visual Studio 2022 and Angular 17 (npm ...
Yonett's user avatar
  • 33
0 votes
1 answer
52 views

I'm having a weird issue with my CORS configuration. I am hosting an Excel 365 addin that contains formula inside my ASP.NET Core 8 application. To allow the client to download the files, I uses app....
Stephane's user avatar
  • 3,442
0 votes
1 answer
213 views

I'm working on an ASP.NET Core 8 Web API project using Entity Framework Core. I've added my connection string to appsettings.json, but when I try to retrieve it using Configuration.GetConnectionString(...
Idowu Olusegun Kelvin's user avatar
1 vote
0 answers
55 views

I decided to fork a project and improve it for personal use when after upgrading to .NET 8 from .NET Core 3 I noticed an error message when trying to login or sign up: BlazoredModal requires a ...
YukiteruNAMAANA's user avatar
3 votes
1 answer
206 views

Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: The SSL connection could not be established, see inner exception. ...
Sanjay's user avatar
  • 2,048
1 vote
0 answers
122 views

I work with an ASP.NET Core 8.0 Blazor server app and Razor pages. In there I have an OnInitializedAsync method to get data from a SQL Server for changing purposes. Now in this version this method ...
Gerald's user avatar
  • 11
0 votes
0 answers
74 views

I created a SOAP service using ASP.NET Core 8.0 SoapCore 1.2.1.8 The problem: when I get a request and response with an XML structured data, the API adds some root nodes that should be INSIDE the ...
Kaltarus's user avatar
2 votes
2 answers
84 views

I have a record like this: public record UpdateRequest { public int? Prop1 { get; init; } public int? Prop2 { get; init; } public int? Prop3 { get; init; } } Using Fluent Validation, I ...
user007's user avatar
  • 1,808
0 votes
1 answer
59 views

I’m working on an ASP.NET Core 8 Razor Pages application where an Edit button on Page A redirects to a function in Page B's backend, which then navigates to Page C. The navigation works as expected. ...
Yuvraj Jadhav's user avatar
0 votes
0 answers
85 views

I've an ASP.NET Core 8 Web API project which is successfully running on my local machine, and Swagger UI opens in browser with localhost url. Here is scenario to update one table data periodically ...
cgsabari's user avatar
  • 615
2 votes
1 answer
150 views

I have a situation where I am getting a NullReferenceException when I am checking a model (not a property) to see if it is null. Follow these steps to re-create the issue yourself. Create a brand new ...
ThePeter's user avatar
  • 958
0 votes
0 answers
72 views

Inside a razor page, I must know whether a model property is decorated by [Required]. The conventional answer is: @{ var isNameRequired = Context .RequestServices.GetRequiredService<...
lonix's user avatar
  • 22.5k
0 votes
2 answers
369 views

First time experimenting with creating an ASP.NET Core 8 web application in Visual Studio Code. I chose .NET 8 because it's the newest version. I am deploying it via Azure App Services. I am very ...
CigarDoug's user avatar
  • 1,610
1 vote
0 answers
109 views

I have a server application build with ASP.NET Core 8 using the WebSocket middleware. I use websockets to send messages between a client and the server, in this case it is used to send audio from the ...
Albardo's user avatar
  • 41
0 votes
1 answer
172 views

I am trying to make a web application in .NET 8. I am following a Microsoft Learn tutorial for adding Entity Framework Core: https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro?view=...
kevin29's user avatar
  • 103
0 votes
1 answer
62 views

I'm deploying an ASP.NET Core 8 MVC appm, deployed to an Azure web app using Azure DevOps. The pipeline runs without errors, but the latest changes don't show up on the live site, even though the ...
AllramEst's user avatar
  • 1,509
0 votes
1 answer
155 views

I'm working on a fairly standard ASP.NET Core 8 Web API project. I added a module to globally capture exceptions, and it works fine. But now I'm trying to standardize the responses in the controllers ...
Robe79's user avatar
  • 69
1 vote
0 answers
42 views

I am working on an ASP.NET Core 8 MVC app and trying to implement a "Remember Me" functionality in the login action. However, when I add these lines of code: var claims = new List<Claim&...
Zahab Abbas's user avatar
0 votes
1 answer
116 views

I'm pretty new to web dev and have a question about how to best structure the project in currently working on. The project uses Entity Framework and ASP.NET Core 8 MVC. In my database I have the ...
Landon's user avatar
  • 538
0 votes
2 answers
39 views

I'm working on upgrading a .NET Framework 4.8 app to .NET Core 8. Currently experiencing an issue where both Html.BeginForm and the form helper tag sometimes render the wrong action. In Framework 4.8, ...
asfallows's user avatar
  • 6,128
1 vote
2 answers
97 views

I have an ASP.NET Core 8.0 MVC (upgraded from .NET 6.0) project; it's working fine in a Docker container except for the pages that contain Blazor code. I'm getting an error blazor.server.js:1 [2025-...
msd's user avatar
  • 91
0 votes
2 answers
83 views

I am getting an error while running my ASP.NET Core 8 MVC app. These are my controller methods hit by Ajax calls by Kendo controls: public List<Location> GetLocations() { return _db....
Gulumal's user avatar
  • 69
1 vote
1 answer
82 views

I am developing an API in .NET 8 and implementing authentication using JWT with Microsoft.AspNetCore.Authentication.JwtBearer. The problem is that when I send the token in the Authorization header as ...
user30113669's user avatar
0 votes
1 answer
51 views

I deployed a new version of ASP.NET Core 8 web site (file deployment on IIS). Part of the web site uses the jQuery DataTable library and in the new version I used newer version of DataTable and ...
WML's user avatar
  • 185
0 votes
1 answer
269 views

When using Blazor's IdentityComponentsEndpointRouteBuilderExtensions.cs logout method: accountGroup.MapPost("/Logout", async ( ClaimsPrincipal user, ...
TexasJetter's user avatar
0 votes
1 answer
316 views

This is a follow up question to IExceptionHandler in ASP.NET Core 8.0 Web API - unable to debug I was advised, that if the request is not sent through IIS (say, sent through SwaggerUI or Postman), ...
InquisitiveLad's user avatar
0 votes
1 answer
48 views

I am trying to access the UserRoles property from my ApplicationUser entity and I keep getting an error message stating Invalid column name 'UserId1'. I am following this Microsoft article (https://...
Andrew's user avatar
  • 2,013
0 votes
1 answer
251 views

I'm working on an ASP.NET Core 8 and Angular project and encountering an error with the Vite proxy setup. I'm trying to proxy requests to my ASP.NET Core API, but I keep getting a connection refused ...
Lesley's user avatar
  • 1
0 votes
2 answers
333 views

I have an ASP.NET Core 8 Web API built with C#, and I'd like to add some validations to the request body for PUT operations. One of it is to ensure that requests coming to my API is matching exactly ...
Mr. Developer's user avatar
0 votes
1 answer
59 views

I have an ASP.NET Core 8.0 MVC project and I'm running into a really strange behavior with VS Code. I've been trying to update some routes and my views, and for some reason, it wasn't recognizing my ...
Braden's user avatar
  • 137
0 votes
0 answers
58 views

I've developed an application utilizing Next.js for my client side, and an ASP.NET Core 8 Web API for my backend. The auth flow is fairly simple. My backend issues short-lived access tokens, along ...
david jovanovski's user avatar
0 votes
1 answer
107 views

I have some repeated code I'd like to move to a Razor Pages code block, which contains an asp-for tag helper. That expects a ModelExpression, and I'm unsure how to pass that. @model IndexModel @{ ...
lonix's user avatar
  • 22.5k
0 votes
0 answers
256 views

I have this form and when I try to submit the form, my DB gets a register with null fields, every field that supposed to fill in the form, I sent null, but the fields I've preset the value reaches the ...
Ho Sung Choi's user avatar
0 votes
1 answer
39 views

I am redirecting to my .NET 8 application from other application from there I am getting the userid and filling the same in my session. I am adding the userid in claims. When I am not directly using ...
Rahul Aggarwal's user avatar
0 votes
1 answer
59 views

I'm using NLog so that when server gets error will direct action to ErrorController. Program.cs: app.UseStatusCodePagesWithReExecute("/Error/{0}"); app.UseExceptionHandler("/Error"...
user2174775's user avatar
0 votes
1 answer
107 views

I'm building for ASP.NET Core 8. Is there something I need to edit to bypass the error message when I include the latest FastReport.Data.MsSql? When I include the latest version, I get this error: ...
erict's user avatar
  • 1,541
0 votes
1 answer
80 views

We have an API that was originally written using the ASP.NET MVC framework and hosted on Windows Server. We have now ported it to an ASP.NET Core 8 Web API, and want to host on Linux (Oracle Linux 9). ...
Adam's user avatar
  • 6,812
1 vote
1 answer
56 views

I'll show you the issue with an example. I created a C# & ASP.NET Core 8 MVC (without HTTPS) sample project with Visual Studio. I added this code to HomeController.cs: [HttpGet] [Route("[...
Marko's user avatar
  • 1,650
0 votes
1 answer
102 views

I have a question: I am developing with ASP.NET Core 8.0 and have encountered some issues. In a deployed environment, files like (ProjectName).dll are locked, preventing overwriting. I am curious ...
신성길's user avatar
1 vote
0 answers
405 views

I am currently writing an ASP.NET Core 8 service, and I am seeing strange behaviour (to me) using MVCs Activity.Current.TraceId in my logs. SO tells me that HttpContext.TraceIdentifier changes per ...
TheLocdDev's user avatar
0 votes
1 answer
371 views

I'll appreciate some assistance debugging my code to know what I am missing or doing wrong. Please feel free to review related code at my git repository at this link https://github.com/slim1477/slim-...
Seyi Agboola's user avatar

1
2 3 4 5
7