Click here to Skip to main content
15,890,579 members
Everything / .NET / .NET Core

.NET Core

.NET-Core

Great Reads

by Marc Clifton
Implementing an SSL capable server in .NET Core WITHOUT ASP.NET, using nginx, and testing Postgres with EF, all running on an rPi
by Juan G. Carmona
Advanced logging in modern .NET applications. A Sunday-morning-proof-of-concept.
by Marc Clifton
Talk to your rPi over a Slack channel, getting status, controlling devices, and running shell (bash) commands and viewing the console output posted back to your Slack channel
by Marcelo Ricardo de Oliveira
The second of many articles featuring design patterns, architectural designs, frameworks and technologies leading to ASP.NET Core Microservices

Latest Articles

by optiklab1
Exploring world of NFTs and blockchain while prototyping wallet CLI application with efficient data structures using C# and .NET Core
by Maniezzo
A couple of lines of code to get the i-j indices of an upper triangular matrix (main diagonal included) from a linerized array.
by Bohdan Stupak
Batching is a nice technique that allows you to handle big amounts of data gracefully. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.
by DomGries
Download and install any dependency such as .NET, Visual C++ or SQL Server during your application's installation!

All Articles

Sort by Title

.NET Core 

24 May 2021 by TheBigBearNow
Hello all, When my site is deployed and multiple people as using it I am trying to understand if my server were able to handle these requests from multiple people. At first itll only be 10-20 people but I plan on it growing. On the UI since its...
24 May 2021 by Chris Copeland
Asynchronous Server Socket Example | Microsoft Docs[^] The above might help you out, it depends on how you've implemented your accept/receive endpoints. In theory your socket should be handling connections and reception of buffers on a separate...
30 Apr 2018 by M.Kamran Asim
Dear Friends, I have started my new project in .Net core 2.0. Recently I did some research for best suited ORM, which is fast and easy to use. I found Dapper as a king of ORM, but it has many limitation. To overcome these limitation I found solution to use hybrid approach by combining Entity...
18 Dec 2019 by M.Kamran Asim
I have migrated my source code to .net core 3.0. I had a middleware to log request and response of api request. This middleware used stream (HttpContext.Request.Body and HttpContext.Response.Body) to get json request and response data. Now I want to replace the stream by PipeReader...
18 Dec 2019 by wkchee
By default, the stream will be closed after read, hence threw an exception of disposed object. Hence, got to obtain the BodyReader with leaveOpen flag set to true. var body = request.BodyReader.AsStream(true); using var streamReader = new StreamReader(body);
27 May 2020 by PaulKukiel
.NET Core 3.1, Docker, postgres, swagger quick start
1 Dec 2020 by octavia81
I'm quite new in .net core. Learning in progress and i'd like to know how much do we need to know ajax, jquery, javascript if we want to get certain level proficiency in .net core web application. I have good enough knowledge in bootstrap css and...
1 Dec 2020 by Afzaal Ahmad Zeeshan
.NET Core is a backend technology in a web development stack, while JavaScript, jQuery (and other derivative technologies, such as Ajax) are for the frontend. If you are hands-on with JavaScript, why not go with Node.js? Node.js[^] If you are...
2 Jan 2021 by TheBigBearNow
Hello all, I currently have 2 separate projects, I have an API for the backend with CRUD and login functionality, I also set up Json Web Tokens on the backend for validation purposes. I have a front end MVC project which I am using for my UI. On...
18 Jan 2017 by Bart-Jan Brouwer
.Net Core datagrid with server side paging, sorting and filtering
13 Jan 2020 by M.M.Mohseni
In this article, we'll explain how to register (Add) all specific interface assignable types in an assembly and will use them in a class.
24 Feb 2021 by TheBigBearNow
Hello all, I have 2 .net core projects that work perfectly with each other when I run them normal, I have an API and a MVC UI. When I run them in docker containers, I go on my API with swagger, I figured out how to connect my postgres db and...
13 Nov 2019 by Dave Kreskowiak
You're going to have to ask Stack Exchange how to use their library. After all, they wrote the thing. Why would anyone else support their library?
18 Jun 2020 by Member 14867519
I want to use .NET core IoT library in order to run C# code for my SAMA5D27 SOM1 EK1 ARM embedded board. GitHub - dotnet/iot: This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.[^] I have build this...
20 Jan 2019 by abdu_karami
as I am new to the .Net Core, I am facing the following issue I have Authentication_API that returns JWT Token to the login controller at client side. After successfull login, I want to redirect to Home page. But when I use [Autherize] attribute to the controller it is not working. But without...
30 Apr 2018 by Member 13731370
I have 6 Projects in a solution. I can't access other projects folders from my Web Api Project. there is no problem for others. What should I do? What I have tried: I create a dependency from Web Api Project to Class Library Project and other Web Project. I haven't done circular dependency....
30 Apr 2018 by Member 13731370
Solved - Right click on Project and select Add → Reference → select the project you want to reference.
21 Mar 2019 by Member 8741848
I'm trying to thin down my Controllers, by using a service layer. But I can not workout or find an example of how to handle issues that arise in the service layer. As an example, I have a controller action Add Item, which has a name and user defined ID. The code must be unique in the database....
21 Mar 2019 by F-ES Sitecore
It's generally done by return types. Either return false from your Add method if it didn't work and show a generic message to the user, or return an enum with values like "Succeeded", "DuplicateID", "InvalidData" etc to specify the specific reason for failure and the controller will then show a...
27 Dec 2020 by TheBigBearNow
Hello all I have been able to call my api with Create, Get, GetAll, and Delete. But I am having troubles with only Update. I thought it would be the same as Create but It seems not. I tried with HttpPut and HttpPost but nether called my API...
27 Dec 2020 by Gerry Schmitz
Create implies "new", not update; which involves at least one read and one write; unless one is just blindly posting; overwriting whatever gets in the way. Any "updating" would happen in the model / dal / orm / back-end ... Your "calls" have no...
11 Jan 2019 by Marc Clifton
Implementing an SSL capable server in .NET Core WITHOUT ASP.NET, using nginx, and testing Postgres with EF, all running on an rPi
14 Nov 2016 by Vincent Maverick Durano
A quick demo tutorial on how to setup .NET Core on Mac and creating a simple ASP.NET Core app that talks to PostgreSQL database, and running it on Docker.
11 Feb 2019 by frez
.NET Core Razor Page Email Form using SendGrid and reCaptcha
7 Aug 2017 by Bart-Jan Brouwer
Modern design example for .NET Core MVC with RESTful service
25 Mar 2020 by Richard MacCutchan
dotnet publish command - .NET Core CLI | Microsoft Docs[^].
20 Feb 2020 by Ger Hayden
I have two .net core 2.2 services, InitialisationHandler and WorkingTicketHandler, one holds initial information and the other is intended to hold a working ticket. The InitialisationHandler always has its information ready when asked, but the...
20 Feb 2020 by Richard Deeming
The only way the GetWorkingTicket method will return null is if you first call SaveWorkingTicket(null) on the same instance. I assume you meant that it returns a blank WorkingTicket instance? The value you store in the field won't be persisted...
29 Nov 2016 by Shashangka Shekhar
In this article, we will learn about .NET Core Features & short overview on .NET Framework (existing). We will discuss about what changes were made/added in new environment of .NET Core.
30 Nov 2019 by Johannes Bildstein
Write cross platform desktop applications with .Net Core by using the OS native webview.
19 Mar 2020 by RickZeeland
Version all your .NET Core projects in one swoop fell!
20 May 2020 by raddevus
Post to your Web API via the XmlHttpRequest - learn how to set up headers, data for body, etc.
20 May 2020 by raddevus
A quick article to walk you through building your .NET Web API and posting to it via AJAX (using JSON)
18 Oct 2020 by JawadHasan
Use NoSQL database functionality from within a Relational database system
4 Aug 2020 by Member 10744292
Hi, My PC was stolen ,and i have a project in .NET Core MVC that i was working on in that.I could go to my hosting account where i published the website and get the published solution with .exe and dll ,but is there a way to get the razor...
4 Aug 2020 by Garth J Lancaster
If you mean as in reverse-engineer / decompile, no ... that being said you *may* be able to use a tool like Red-Gate Reflector .NET Decompiler: Decompile Any .NET Code | .NET Reflector[^] to inspect the source code. This is probably not a good...
4 Aug 2020 by TheRealSteveJudge
If you compile your .Net Core Web application two dlls are generated in the bin folder. e.g. WebApplication.dll and WebApplication.Views.dll WebApplication.dll contains the *.cs file whereas contains the *.cshtml files. You could use a decompiler...
23 Feb 2020 by Sacha Barber
How to get nice auto incrementing assembly versions inside your .NET Core/Standard projects
16 Jun 2020 by Shkurko Eugene
This article looks at the only thing that is missing from Christian Horsdal's, “Microservices in .NET Core: with examples in Nancy” - a tool for automating the interaction between microservices.
19 May 2020 by Daan Acohen
An explanation of how to support multiple platforms in .NET development
24 Feb 2019 by MukeshKumarTech
In this post, we will learn a few points which can be implemented while developing the website in ASP.NET Core to improve performance.
3 Nov 2019 by Marc Clifton
A metadata driven, view defines the model, schema generated on the fly, from concept to prototype application in 16 days
27 May 2020 by Maciej Los
Not enough description of issue to post short answer. Refer this: How to Fix the 400 Bad Request Error[^]
21 Sep 2017 by Đạt Lữ
what's my wrong everyone? i don't know why savefiledialog can't create file excel, i'm check see 1 file app created is shortcut temporary file in (C:\Users\admin\AppData\Roaming\Microsoft\Windows\Recent) What I have tried: private void btnExportExcel_Click(object sender, EventArgs e) {...
21 Sep 2017 by Dave Kreskowiak
OK, so put a breakpoint on the second line of the button Click handler and run the code. When the breakpoint is hit, hover the mouse over filePath to inspect the content. You should get the fully qualified path to the file to write to. If not, you've got a problem in your GetFileNameToSave...
8 Apr 2019 by Marc Clifton
Bonus - Group chat with your rPI's using SlackBot
9 Mar 2017 by TheGreatAndPowerfulOz
How to recursively select all descendants using an extension method
23 Apr 2021 by honey the codewitch
BinaryReader needs a better way to read strings and types. Here's a quick and dirty fix
10 Oct 2016 by Rasmus Lindegaard
Hey AllAs the title says, all I'm really seeking out is a good guide on building MVC applications, preferably with the new Open Source tools from microsoft.I'm including vscode in this, because most guides assume Visual Studio Community (or above) and since I wish to do this the platform...
10 Oct 2016 by Afzaal Ahmad Zeeshan
Good request that you are making here. Sadly, there are very less guides that take Visual Studio Code into considerations and the one that do take it into consideration talk about .NET Core applications, and not the ASP.NET applications. I am currently working on a book titled, "Considering...
18 Feb 2020 by webmaster442
A Media player control for WPF, based on MPV player that can play almost any media file.
3 Sep 2018 by Silvia Campo
A way to organize the WebSocket management logic keeping the Startup clean.
14 Sep 2016 by Afzaal Ahmad Zeeshan
A comprehensive guide to .NET Core for beginners
2 Oct 2018 by Silvia Campo
Different options to create the maps
31 Mar 2019 by honey the codewitch
A Non-Backtracking Regular Expression Engine for .NET (Core)
25 Mar 2023 by Shaun C Curtis
How to build a Modal Dialog for Blazor
10 Apr 2018 by Igor Ladnik
The sample provides Web access to devices status and displays dynamic metrics charts with ASP.NET Core 2.0, SignalR, Angular 5 and Chart.js.
7 Sep 2018 by Robert Vandenberg Huang
Experiment, run and compare different pathfinding algorithms and heuristic functions
6 May 2020 by George Swan
An alternative solution to the Spiral Print problem
23 Aug 2020 by Jin Vincent Necesario
In this article, we'll explore the world of C# attributes.
4 Mar 2017 by Robert Vandenberg Huang
An introduction to make a simple 2048 console application in C#
21 Dec 2017 by Member 13589045
I need use HttpClientModule to use the new HttpClient (better than the old http) What I have tried: I solve adding in my package.json "core-js": "^2.4.1", By the way, a good work, thanks for share with us
21 Dec 2017 by Dave Kreskowiak
Articles are supported by the people who write them. There is NOT a small team of people cranking out articles. There is a forum at the bottom of every article. Ask your question in that forum.
28 Dec 2017 by lepipele
Detailed guide on building C# ASP.NET website checkout that accepts Bitcoin (BTC), Litecoin (LTC), Ethereum (ETH) and other Crypto Currencies.
11 Mar 2019 by Preetam U Ramdhave
This article will help you to implement the functionality where you can store your sensitive data in the amazon Secrets Manager and access while bootstrapping the application.
9 Nov 2016 by Rasmus Lindegaard
I want to make a small web app, in which i need to call on an external WEB API. It exists with Ruby, Python and Javascript bindings, and then theres a JSON version.I was wondering if anyone has tried referencing a Javascript or JSON WEB API this way? I am simply not sure how to create a...
9 Nov 2016 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Here it is - ASP.Net Core Web API with Visual Studio Code ~ Siderite's Blog[^].
26 May 2017 by Fiyaz Hasan
This article shows you how to add Angular Material in ASP.NET Core AngularSpa template
13 Aug 2019 by Benktesh Sharma
Demonstrate how to add EF support in .NET Core project
20 Nov 2019 by Jeremy Likness
Advanced Blazor techniques are covered such as sharing Razor class libraries between a Blazor WebAssembly project and Blazor server-side. Shows how to reference embedded resources like JavaScript libraries, debug on server-side then deploy as client-side and debug in the browser.
22 Apr 2019 by Ger Hayden
Following on from last weeks tangle on key lengths, I need some advice on coercion operators between types using MySql. Part of last week's trouble was that I failed to adequately explain what I needed so hopefully I will not fall into that trap this time. To recap, I am attempting to use the...
22 Apr 2019 by Gerry Schmitz
(You extend the entity, not the dbContext?) If you want to treat an "int" as a bool, create a proxy property; keep the ORM mapping simple. public short MyShort {get;set;} [NotMapped] public bool MyBool {get{return (MyShort == 1);} set {MyShort = value ? 1 : 0;}} Add the code to the entity...
6 Jul 2020 by khaled Ezzat Abdelfattah Abdelgawad
While setting everything for Serilog and SEQ I was stuck in an issue that you may have an answer for it. I am trying to add some properties to all logs using LogContext.PushProperty. However, in my middleware (see image below) the LogContext can...
13 Sep 2019 by Muhammad Afaq Riaz
I am working with a .net core web project. I have to send a value from javascript to razor pageModel. But the problem is I can't get value from pageModel in JSON format. It returns the source code of whole cshtml page. I have tried each and every solution I found. Here is what I have tried...
13 Nov 2020 by Shaun C Curtis
A Blazor application with no Routing or URLs
10 Mar 2017 by TheGreatAndPowerfulOz
Gets the digits and the sign of an integer in an array
22 May 2019 by aquila huang
Introduction of the open source project Light.Data