In this post, we will see how to resolve How to upgrade a Console app from .net 5 to .net 7 to use DirectoryServices Question: To connect to an ldap-Server i want to use Directory Services in a c#-console application. ...
In this post, we will see how to resolve LINQ query runs on using Microsoft.EntityFrameworkCore.SqlServer but crashes on Microsoft.EntityFrameworkCore.InMemory Question: I have the following query: The query runs successfully on production and the results are as expected. I have a ...
In this post, we will see how to resolve iText 7 HTML to PDF error when deployed in IIS Question: Using itext7 with the pdfHtml add-on, I am getting this error below when the web application is deployed in IIS. ...
Question: I am building an API where I get a specific object sent as a JSON and then it gets converted into another object of another type, so we have sentObject and convertedObject. Now I can do this: Now I ...
Question: I’m trying to generate an url like, www.example.com/Example?someOption=true&anotherOption=false&filter=testFilter&filter=testFilter2&filter=testFilter3 I have been using StringBuilder so far for the task but I’d like to think it’s not the appropriate way of doing it. As a result, I came to conclusion that ...
Question: I had a backend solution using a middleware with .NET Core 2.2 and I updated this to .NET Core 5, but the InvokeAsync method is no longer triggered. This is my code: Startup (in configureservices): ValidRouteMiddleware: CheckIdChantierDefaultMiddleware: etc… What ...
Question: I could not find any resources to add health checks to a HTTPTrigger function app, running in .NET 5.0 Isolated. This guide states I can add MapHealthChecks (but in asp.net core) How do I translate this to run in ...
Question: I have an .NET 5 application that uses Identity as the primary login for users. I also have a series of API endpoints that require outside access so these are protected by a JWT token (“xx.xx.api”) Authentication scheme. All ...
Question: I’m trying to implement external oauth authentication within IdentityServer4. All auth requests goes successfully. I have a message AuthenticationScheme: Identity.External signed in. in app log. But when authentication process tries to go back to ExternalLoginCallback action it falls with ...
Question: I’m trying to bind appsettings file into a generic class, but currently I can’t map List<object> values. I have an appsettings.Development.json hierarchy like this: And my generic class is like this: When I use below code to bind this ...