Category ".net-core"

Inject service to configure SignalR backplane

I am trying to use Azure Redis instance as the backplane for my dotnet core signalr application. I need to pull the configuration settings from a database. How

How can i remotely debug an asp.net core web app deployed on an azure app service

I am working on an asp.net core web application. I need to debug this application (put a breakpoint and inspect variables when this breakpoint is hit). I can do

Error while validating the service descriptor 'ServiceType'

I interject in the method but it showing exception here: The code is extension of the services. public static IServiceCollection AddServices(this IServiceCollec

grpc and polly - .net core 6

I'm trying to use Polly as retry policy handler for grpc in my .net core 6 project. I noticed that the retryFunc is never invoked. I started from this project g

Remove Empty from word document using Open XMl in >net Core

Removing the empty line from the word document the using Open Xml in .Net core

How to fix "Segmentation fault (core dumped)" when creating new dotnet project?

I am following https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/create When I try to create a project, I get the following: oskar@oskarslaptop:~/P

Angular 12 .Net 6 value null being passed to api as "null"

I have an angular 12 UI that is communicating with a .net 6 API. When a parameter in a query string is null or undefined the API is interpreting it as a string

AspNetCoreRateLimit endpoint wild-card does not work

I am trying to implement a rate limit using the AspNetCoreRateLimit package. I would like to limit the rate on only one endpoint This one: https://[removed for

Excel gets Corrupted When File Uploaded is Uploaded in Azure Blob Storage in Chunks

** Scenario: I have uploaded a 50MB Excel File through below method creates chunks of the file of 10MB. Two Chunks were uploaded successfully and while uplo

Microsoft.Graph.Core Code:accessDenied uploading file to One Drive API

I use the below code to upload the file to OneDrive API. var uploadedFile = await requestBuilder .ItemWithPath(fileName)

Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute (CS0579)

I am creating a .Net core project using VS Community V 8.10.2 on my Macbook air. I created a parent .Net Core MVC project and created multiple class library pro

Azure function error : BinaryFormatter serialization and deserialization are disabled within this application

i have existing azure function in .netCore 3.1, Trying to upgrade it to .net6.0. after upgrade getting error 'BinaryFormatter serialization and deserialization

.NET 6 (stable) IConfiguration setup in Program.cs

This appears to be a similar problem but none of the answers are fitting for my code...: Read appsettings.json in Main Program.cs This is extremely similar but

Signalr Core WithAutomaticReconnect passing headers

I have gone through Signalr Core documenations and while I understand the feature .WithAutomaticReconnect() What I am curious is does it pass the headers still

Remove all non-essential json formatting in C#

Let's say I have some convoluted json like so: { "ref": "some", "repository": { "id": 123456789, "name": "foo bar" } } I'm trying to get it into

Remove all non-essential json formatting in C#

Let's say I have some convoluted json like so: { "ref": "some", "repository": { "id": 123456789, "name": "foo bar" } } I'm trying to get it into

.Net Core, Entity Framework Core not working on Linux server

I deployed a test console app to a linux server and everything works fine but when the code execute an Entity Framework Core query, I get this message in the co

Guid Instead of string for primary key / ID for ASP.Net Core 3.1 Identity

This no longer works with ASP.Net Core 3.1 / .Net Core 3.1 https://stackoverflow.com/a/37173202/1698480 Compile error:'IdentityBuilder' does not contain a de

Kerberos error when connecting to Oracle database in .NET Core

I have an application created using .NET Core 3.1 which needs to connect to an Oracle database, the connection code is very straightforward and I'm connecting u

System.Drawing.Common on aws lambda

I have a .net 6 code inside lambda function. Simple case where input string transforms to upper case is ok (everything works). When I introduce System.Drawing i