What are the risks of running an IHost instance and WebApplication instance within a single .NET process?
In an attempt to launch both a function app and a gRPC server in the same process, I am spawning two builders, one in a non-blocking fashion in the background (fn_host.RunAsync()
) for the FunctionsWebApplication, and the other in a blocking fashion in the foreground (grpcHost.Run()
) for WebApplication (that hosts the gRPC server) to keep the parent process running.
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.
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 to deal with.
I’ve read about the breaking changes in .NET 8 concerning JWT token validation:
https://github.com/aspnet/Announcements/issues/508.
So I’m trying to implement a TokenHandler
rather than a ISecurityTokenValidator
.
TaskCanceledException on httprequest .net8
I have a client-side and server-side project both working on my localhost in .net 8. When i try to send a post request to my server-side i get error System.Threading.Tasks.TaskCanceledException I wrote many more controllers until i get this error, those requests were working fine but this one… Also when i try to send the same request on Postman it works fine. Here is my server-side code:
I stumbled upon an unexpected behaviour in C# – Can an array change it’s size implicitly?
I’m new to programming and just started C#, so just basic exercises. I was trying to just populate an array with random values and getting the biggest number and how many time it repeated.
i’m running dotnet 8.0, C# 12.
.Net 8 API Json Serialization Failing: JsonTypeInfo error
I am making a call to an API I am developing and I get an error: JsonTypeInfo metadata for type ‘BFNG_Library.Models.App_admin’ was not provided by TypeInfoResolver of type ‘[]’.
Issue with Entity Framework query not working when combined into one statement but works when split into two separate statements in .NET 8
// This query doesn’t work as expected List<Cloudadminauthlist> authOnlylist = _masterReadDb.Cloudadminauthlist .Where(x => x.Authcode != null && authcode.Contains(x.Authcode)) .ToList(); // These two queries work fine List<Cloudadminauthlist> authAlllist = _masterReadDb.Cloudadminauthlist.ToList(); List<Cloudadminauthlist> authlist = authAlllist .Where(x => x.Authcode != null && authcode.Contains(x.Authcode)) .ToList(); I’m encountering a peculiar issue with my Entity Framework (EF) query in .NET 8. […]
ICSharpCode.SharpZipLib.Zip.ZipException: ‘EOF in header’
I am using DotNetCore.NPOI
Version 1.2.3
to read an excel file.
How to configure ServiceProviderOptions with HostApplicationBuilder instead of HostBuilder with .NET Generic Host?
What i’m doing :
How can I use InternalsVisibleTo for prefix case in Visual studio for C# internal class?
I have two projects:
“TestA” project config: