Category ".net-core"

Angular Proxy to .net Core backend works every other time

Running into some weird stuff.. Trying to hit my api from my angular app. Since We need to use windows authentication we need to setup a proxy.conf for angular

WriteDump failed hresult: 0x00000000

I'm on raspian, and issue dotnet-dump collect -p (processID Here) And I'm getting writing full to /home/UserID/core_date_time WriteDump failed - HRESULT: 0X0000

WriteDump failed hresult: 0x00000000

I'm on raspian, and issue dotnet-dump collect -p (processID Here) And I'm getting writing full to /home/UserID/core_date_time WriteDump failed - HRESULT: 0X0000

Hiding a System.Random instance by returning a function

The following code comes from Stylish F# 6: Crafting Elegant Functional Code for .NET 6 listing 9-13: let randomByte = let r = System.Random() fun () -&

Azure Queue Listener - On-premise Azure Queue Listener

I have a scenario that our Azure environment can't connect to on-premise, but on-premise can connect to Azure. So a service call from Azure to on-premise to be

i can not pass parameters to backend ( from Ajax to IActionResult or JsonResult) .net core 5

i have problem i can't pass params to backend use fech or ajax call , but from another PC i can pass params, here is a sample from code Backend : [HttpPost]

Docker and Angular SRR not connecting to backend

I'm trying to divide my application into multiple containers: frontend (Angular), backend (.NET) & database (MySQL). I've set up all containers and they are

Importing a C# .NET 6.0 Core Dll into a C++ without TLB file

I have quite a number of C# Dlls that were made in .NET 4.6 Framework and need to get upgraded to .NET Core 6 - that part is relatively straightforward. However

Failed to setup dotNet certificate on mac by all means

I am trying to run the Dotnet version 6 app on macOS latest version I searched everywhere, it was always required to install the certificate although I had a va

BlockSize must be 128 in this implementation

I'm using the following code to decrypt some strings I reicive but I'm getting the following error: BlockSize must be 128 in this implementation. I would like t

Entity Framework Core: one-to-one configuration

I updated the title to be more relevant. I have two objects and wish to use EF Core to map them to a database using code first. I have shortened them a bit for

FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.SignalR.Core

I'm creating a .net core console application where some of the libraries are using SignalR. I have installed "Microsoft.AspNetCore.SignalR.Core" from nuget pack

The inner stream position has changed unexpectedly

I am trying to upload two files from Azure Function which I have received through multipart/form-data var formdata = await reqstring.ReadFormAsync(); var frontf

SignalR no longer works since upgrading to .NET Core 3.1

I have a websocket server application that I recently upgraded from .NET Core 2.1 to 3.1, however, since then the negotiation seems to fail. This is the error t

Unable to start program, Access is denied C# net6.0

I have this issue where some of the projects I created for.Net6 throws the error shown in the image attached In this instance the project was running fine, sud

How to set default values for a query param with array type in .Net.Core with Swashbuckle by code

I am currently working with .NET Core 3.1 and Swashbuckle library. I have made several endpoints with requests decorated with attributes and proper swagger desc

How to call RedirectToAction in asynchronous Task methods?

I am using MVC aspnetcore dotnetcore 6.0 I do an authorization with a LoginController. When it is success i want to redirect the user into HomeController. But R

Insert data in a table from another model In .NET Core MVC

I'm trying to build a quiz application and i want to insert the user's answers after the quiz is submitted. this is my question model: public class Question {

Outlook Calendar .Net Core Web API GetList (tokenCredential parameter cannot be null. (Parameter 'tokenCredential'))

I have an API project related to Outlook calendar integration. With this project, you can access your outlook account. I want to list all the events in the cale

Dynamically generate lambda expression

I have the following class: public class Movie { public int MovieId { get; set; } public string Title { get; set; } } I want to create a lambda express