Category ".net-core"

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

How to solved gRPC exeption with this Status(StatusCode="Unimplemented", Detail="Service is unimplemented.")?

I implemente gRPC in my .net core 3.1 projects. Although it works in my local, does not work on server. I try to implement every things that is necessary in my

CORS Error while calling .Net WebAPI from Axios

I have a login form from where I am calling the .Net API from react using Axios axios .post( 'https://localhost:5001/login', { email: 'abc@gmail

FunctionsStartup vs IWebJobsStartup, problems reading HttpHeaders on the request

I am building a .NET Core 3.1 Azure Functions application on my local and am trying to configure a startup class. When I implement a class to inherit from Funct

EntityFramework is very slow to compare strings because create a nvarchar sqlparameter instead of varchar

I have this sample query: context.BarcodeTipiDoc.AsQueryable().Where(d => d.Barcode.CompareTo(minBarcode) > 0); That query runs very slow because Entit

Error installing dotnet-skd-2.2 on virtual linux machine. E: No installation candidate exists for package "libicu"

i try to deploy my .net web application using this guide When i try this command sudo apt install dotnet-sdk-2.2 i get the following error message. The followin

How to create NavMenu with collapsible submenu in .Net Core Blazor app

I am trying to create a blazor navmenu which has a shape like this item a item b when I click on item b it expands with sub menu like this and clicking on subi

Can't access User Secrets in ASP.net core 3.0

My question is simple. I have an ASP.net core 3.0 app, I added secrets using visualstudio and pasted my secrets into the secret file normally. Then inside my P

Cannot install dotnet sdk on mac

I have installed dotnet sdk from https://dotnet.microsoft.com/download/download after installing I run on terminal: dotnet --version and I get : zsh: command no