Category ".net-core"

C# - WCV using class from .net core project

I have some problem with my project, i'm making application in .net core but i also need to create api, i want to make "wcf service" and now i can't use class f

Set service startup options for .net core worker service

I am trying to create a Windows service by writing a .NET 5 worker service, and I am hung on where in my code I would set up the service as auto-start, auto-sta

Is there a way to list down only the custom dotnet templates installed?

dotnet new --list lists all the built-in and custom templates installed. But I want to list only the custom templates that I have created and installed. Is ther

Client HTTP/2 request on .Net Core 3.1 throw "HTTP/2 error code 'PROTOCOL_ERROR' (0x1)"

I've got a problem with HTTP/2 request by HttpClient to the external service by HTTPS on .Net Core 3.1 : var httpClient = new HttpClient(); var request = new Ht

How do you deploy WireMock.Net as an Azure Web App

I am trying to deploy a ASP.NET 6 App which contains WireMock.NET as a hosted service. According to WireMock.NET's wiki this is possible and I'm basically using

Not able to get all the logs in application insights even after disabling sampling

I am generating logs for my client application where there is very limited internet connectivity. I am storing the offline logs and generating it to applicatio

Why $(SolutionDir) is undefined in dotnet CLI?

I'm trying to build my project from dotnet CLI. I'm using dotnet build and it fails. How to reproduct: Create a simple console application using Visual Studio t

dotnet 6 minimal API circular serialization

I am new to dotnet, trying out dotnet 6 minimal API. I have two models: namespace Linker.Models { class Link : BaseEntity { [MaxLength(2048)]

How can I reduce the amount of files produced by dotnet publish command line? [closed]

I tried to publish my dotnet app using dotnet publish --output publish --configuration Release but the result not as expected because the last

Validate with Bouncy Castle ECDsaSigner

I am trying validate the message digest hash using eCDsaSigner with R and S but VerifySignature returns false . Is it possible to get more information as to why

Consume SSL Secured APIs in ASP.NET Core 6 MVC Client

We have an application that has two projects as follows (1) AppClient – This dotnet core MVC project and it is running on WebServer on IIS (2) AppService

dotnet core Subscriber is not being triggered after Publishing

I'm working on a Redis(StackExchange.Redis) PUBSUB system in Dotnet core and everything works normally until after I publish to my channel. The subscriber simpl

Performance of c# FileStream.Seek vs FileStream.ReadBytes. Why is the latter faster?

In my application I need to frequently move the position pointer of a file stream forward a small number of bytes. Experimentation with using FileStream.ReadByt

Is there any way to get Graph API event reminder through subscription?

We have multiple reminders like 5 minutes , 15 minutes and 30 minutes. We store them in our own database and send maximum time reminder with graph API create ev

MSB4803: The task "ResolveComReference" is not supported on the .NET Core version of MSBuild

I have used Microsoft.Office.Interop.Excel reference in com. And the above error is coming in deployment. Below is the com reference that is in .csproj file of

Error: The type or namespace name 'DesignAutomation' does not exist in the namespace 'Autodesk.Forge'

I'm trying to run Forge Sample to scale a model using .Net Core. I get the Error: The type or namespace name 'DesignAutomation' does not exist in the namespace

RouteBuilder vs EndpointRoutBuilder in .Net

I am trying to learn behind the scene of Routing and I find out that WebApplication implements IEndpointRouteBuilder which allows it to define routes for exampl

Linq Nullable object must have a value. errors in .NET 6 and EF Core

I have this code: IQueryable<WinnerClassExtend> dataList = from Class in _context.AllClass join Winner in _context.AllWinners on Class.ClassId equals Win

Interop Crypto OpenSslCryptographicException: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

No matter target to net5.0 or net6.0 framework, when trying to create a sslstream, it repeatedly throw the error running on Ubuntu OS while works on Windows OS,

Getting a SameSite cookie issue when trying to load recaptcha api.js in ASP.Net core project

I am trying to add a Google v2 reCaptcha on my ASP.Net Core 6 Web Application and test it on my localhost. When I add the following line: <script src="ht