All Questions
868
questions
0
votes
1
answer
33
views
.NET 8 Windows Service Example won't start (System.IO.IOException)
I'm trying to create a .NET 8 Windows Service.
Have followed this guide:
https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service
All is good until I try to start it, Event Viewer ...
0
votes
1
answer
17
views
The required antiforgery header value "RequestVerificationToken" is not present
I'm trying to implement CSRF between a Next.js frontend and a .NET backend API.
First, the frontend app gets a CSRF token from the API. The API returns a cookie with the antiforgery token.
antiforgery....
0
votes
0
answers
26
views
Any pitfalls in upgrading a WPF application from .Net 6 to .Net 8?
We're looking to upgrade some large WPF solutions from .Net 6 to 8, and my understanding is that the process should be straightforward (changing the projects' target framework). But are there any ...
0
votes
0
answers
23
views
MVC pages are not running with ReactTS
We have a web application which runs on .NET 8 (recently we migrated from 5 to 8).
Now the team is planning to build new screens in ReactTS and merge these screens with the existing .NET 8 web ...
-1
votes
2
answers
51
views
.NET 8 Rate Limiting via Policy
I am trying to run the .NET 8 Rate Limiting Middleware, with a global rate limit, as well as a specific policy for certain endpoints. The global policy is working as expected, but I cannot get the ...
0
votes
1
answer
32
views
Quartz Dependency Injection with Net8
I'm working with .NET 8 and Quartz 3.11 following the official documentation, and I've encountered an issue: I can't correctly configure Dependency Injection for a job that implements the IJob ...
0
votes
1
answer
32
views
Is it possible to fail a build if .NET 8 project references a Windows specific library?
I migrated a large code base to .NET8 that was previously running on Windows. Now it has to run on Linux. I would like for build process to fail if there is an Windows specific library that will not ...
0
votes
1
answer
45
views
How to hide server details(Kestrel) in response headers for Function Hosted applications in .NET8?
I'm working on an Azure Function Hosted application and I need to hide the server details from the response headers. I tried the following code, but it didn't work:
.ConfigureWebHostDefaults(...
0
votes
1
answer
58
views
.NET 8 Blazor web app can't access PDF from server or local network
I'm trying to open a PDF file from an absolute path, when in debugging I can open it from both local network and the server I'm running the web app. But as soon as I host it in IIS, it can't access ...
0
votes
0
answers
56
views
.NET 8 desktop app says that .NET 8 is not installed when it is
I have a C# .NET 8 Windows application that I am building and then trying to run. However, the app won't run as it says .NET 8 isn't installed as shown here:
I have installed the runtime from the ...
0
votes
0
answers
38
views
Trouble getting object claims using System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler in C#
This may be important to note before reading: All this used to work before, using System.IdentityModel.Tokens.Jwt version 6.15.1. After bumping the solution from .net 6.0 to 8.0 and updating that ...
0
votes
0
answers
28
views
SetDefaultNumberType(DefaultNumberType.Decimal) can't access any default library like string related or Math related functions in DynamicExpresso
I am working on a Blazor WebAssembly project using .NET 8, and I am utilizing the DynamicExpresso library to evaluate my expressions.
If we use interpreter.SetDefaultNumberType(DefaultNumberType....
1
vote
1
answer
94
views
How to I properly implement C# classes using ASP.NET Core MVC?
The assignment is to create an ASP.NET Core MVC web app that has a Student and a StudentWorker class. You then have the user input the information for a StudentWorker object (id, name, hourly pay, and ...
0
votes
2
answers
34
views
Call a Function on Change MudTabs in Blazor
I am developing an application in .NET 8 Blazor WebAssembly and using the MudBlazor library for the UI. I have a MudTabs component, and I want to call a function whenever I change tabs. How can I ...
0
votes
1
answer
62
views
Unauthorized (http 401) error with .NET 8 custom token handler
In .NET 8, I'm trying to implement a custom JWT token handler. The incoming JWT is missing the aud and iss claims. This may be incompliant with the OAuth standard (not sure), but it's something I have ...