Click here to Skip to main content
15,887,267 members
Everything / Web Development / ASP.NET / ASP.NET Core

ASP.NET Core

ASP.NET-Core

Great Reads

by Ivan Yakimov
What are certificates in ASP.NET, why we need them, how to create self-signed certificate for testing and use certificates with ASP.NET Core
by Robert_Dyball
Add JSON Web Token Authentication (JWT) using OpenIDDict to our ASP.NET Core + Angular 2 SPA. Source includes VS2015 and VS2017 versions.
by kusnaditjung
Web specification and framework
by thangchung
Learn to organize clean architecture to modular patterns

Latest Articles

by Nicolas DESCARTES
How to implement authentication in Blazor and ASP.NET Core ?
by Mohammad Elsheimy
Porting Windows Fonts to Linux
by Zijian
Overcome the 53-bit limitation of number of JavaScript while keeping strongly typed integral types of .NET. Part 2.
by Dev Leader
Learn to create tests, use advanced techniques, and improve your code quality!

All Articles

Sort by Title

ASP.NET Core 

2 Apr 2020 by Richard Deeming
The "A" in "AJAX" stands for "asyncronous". That means the code doesn't wait for the $.ajax call to complete before it continues. Your success callback will be called once the request has completed, but that will be after the modal is shown. ...
2 Apr 2020 by TCS54321
i am new in AngularJS. i need to show some details in modalpopup by click on button in table row. My table code is :- {{data.OrderNo}} ...
26 Jan 2022 by Member 13291196
Hi, I am getting this error in Blazor JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'DTO' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this...
26 Jan 2022 by Richard Deeming
Your API client is expecting your endpoint to return a single record. You cannot change the endpoint to return a list of records and expect it to magically work. Either add a different endpoint for returning the list of records, or change your...
3 Aug 2022 by Member 15341738
Hello, in my .NET6 MVC app I have created an endpoint which accepts two strings, one containing data which will be transformed into a file and and second one which takes a type of file which will we want to create (which is "pdf"). ...
3 Aug 2022 by Sandeep Mewara
If you debug, you should observe that the URL formed is not a valid one. A URI is a compact representation of a resource available to your application on the intranet or internet.. Refer: Uri Class (System) | Microsoft Docs[^] Looking at what...
6 Jan 2022 by TheBigBearNow
I currently have a layout which works for me except for when the screen gets smaller. I have been playing with it and I have it how I want it except for 1 element. When the screen is big I have the elements layed out ‘block’ next to each other...
31 Oct 2022 by Member 10252017
Model: public class ClientSetupDto { public byte Status { get; set; } = 0; public string ClientName { get; set; } public string ClientId { get; set; } } API Request: [HttpPost] ...
3 Nov 2021 by TheBigBearNow
Hello all, I currently have my project running http without any issues. Now I am working on encrypting my traffic by using https. I have a certificate for my domain and I set up all the code and areas I thought were necessary to deploy it as...
20 Apr 2018 by Ger Hayden
I have four dropdowns each in its own viewcomponent. I dont want to impose an order on how the user select from them - each one will filter the contents of the other three and the perspective of the user will govern which one they start from. Taken in order the route would be: ...
20 Apr 2018 by Ger Hayden
Now Im thinking of introucing a new lead parameter called "journeySelectors". The value of "journeySelectors" will be interrogated to decide what of the four driving parameters have values need to be handled. "journeySelectors" will follow the example of "enDays" here from github
7 Aug 2017 by Bart-Jan Brouwer
Modern design example for .NET Core MVC with RESTful service
7 May 2021 by TheBigBearNow
Hello all, I have a .Net Core application and I’m using the Binance.Net API. I want to show the trades coming in real time and update my View with the current trades. I’m not sure the correct way to do this. Possibly ajax? The data that is coming...
7 Jun 2019 by ThahirAhmed
I need to create a web application like a shopping site using .Net Technology like ASP.NET, ASP.NET MVC, ASP.NET Core or ASP.NET Razor. Which technology is comfortable? What I have tried: I have knowledge in C sharp language with ASP.NET, ASP.NET MVC, ASP.NET Core or ASP.NET Razor. I need to...
7 Jun 2019 by RickZeeland
Take a look at the open source nopCommerce package, it's written in ASP.NET: open-source-e-commerce-platforms[^]
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.
2 Jul 2021 by Lee P Richardson
How to automatically add current user info to logs in ASP.NET Core
4 Oct 2018 by Rahul Rajat Singh
In this article we will look at how Dependency Injection works in ASP.NET Core.
16 Mar 2021 by Shaun C Curtis
A Blazor control to manage and monitor edit state in a form
17 Mar 2021 by Shaun C Curtis
A Blazor inline dialog control to lock all page controls except those within the form.
16 Mar 2021 by Shaun C Curtis
A Blazor validation control to manage and monitor validation state in a form.
9 Mar 2017 by TheGreatAndPowerfulOz
How to recursively select all descendants using an extension method
4 Feb 2020 by gcogco10
I have a problem my request to register new users on my controller, does not work it throws an exception to connection failure. What could be the reason for this, the email domain is gmail not outlook account What I have tried: [HttpPost] [AllowAnonymous] ...
16 Jun 2021 by Shaun C Curtis
A detailed look at the anatomy and workings of a Blazor Server Component
3 Sep 2018 by Silvia Campo
A way to organize the WebSocket management logic keeping the Startup clean.
2 Mar 2018 by alirıza adıyahşi
Creating a multi-tenant (SaaS) web application based on ASP.NET Boilerplate and using ASP.NET Core, Angular and EntityFrameworkCore.
28 Jan 2021 by Shaun C Curtis
A practical walkthrough of Async Programming in DotNetCore
7 Sep 2018 by Robert Vandenberg Huang
Experiment, run and compare different pathfinding algorithms and heuristic functions
17 Mar 2018 by Dodido_72
Hi! I am trying to add a product with many prices to a shopping cart(a one-to-many relationship entity framework). The customer has chosen a special size with its price in the product presentation (a short list with buttons on the right). Now I want to add this selected product, size and price...
24 Jun 2021 by KuntalBose
I am working on a app for variety of users(like Student,Teacher,Institute Admin etc),but now I brake the whole app into user specific web application and think to have to have one centralized login system . My project contains a Web API project...
5 Nov 2020 by Ev Uklad
This article describes a technique to serialize models containing dynamic types with System.Text.Json JsonSerializer, that doesn’t support $type.
26 May 2017 by Fiyaz Hasan
This article shows you how to add Angular Material in ASP.NET Core AngularSpa template
1 Aug 2021 by El H
I’m having a problem. After I’m adding the references projects by clicking right click on the App_Core folder —> add reference —> After I add those projects with v sign, I can’t see them, their classes are not recognized in the asmx file. I know...
16 Jun 2020 by sunpop
Entity Framework 6 is installed in Visual Studio 2019. I want to create Database first EF. But ADO.NET Entity Frame work is missing in ASP.NET Core WebApplication project. But, it's there in ASP.Net Framework. In ASP.NET Core WebApplication,...
16 Jun 2020 by Maciej Los
You have to install appropriate EF - for Core. For further details, please see: Installing Entity Framework Core - EF Core | Microsoft Docs[^] Here is a list of possible EF Core database providers: Installing Entity Framework Core - EF Core |...
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.
6 May 2023 by OriginalGriff
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself. Let me just explain what the error means: You have tried to use a variable, property, or a...
6 May 2023 by ahmed_sa
I working on MVC razor pages asp.net core 7 . I can't display success message after submit and insert data on same page . I get error System.NullReferenceException: 'Object reference not set to an instance of an object.' error happen on...
27 Jul 2020 by MinaMr
I'm implementing asp.net core 3.1 project. In my controller I have a linq query like the following and without defining inprocessapicount and pendingcount which claculates counts of related amounts, it works fine but after adding them to...
27 Jul 2020 by Richard MacCutchan
This is exactly the same question as Aggregation count returns null in linq asp.net core - .NET (Core and Framework) Discussion Boards[^]. Did you create this new account just to post this again? If so please delete both question and the...
4 Feb 2020 by gcogco10
I have this method and i am getting this error to this object, please assist me. What I have tried: public async Task ExternalLoginConfirmation(ExternalLoginConfirmationViewModel model, string returnUrl) { if (User.Identity.IsAuthenticated) { ...
4 Feb 2020 by gcogco10
Install-Package Microsoft.AspNet.Identity.Owin on Package Manager Console on your Visual Studio, the error will be gone. Its a missing namespace.
30 Apr 2019 by Member 14164795
My goal is to dynamically update two fields every time there's a change made to a dropdown list. In my example, the dropdown is a list of employees, and I need the group/subgroup fields to update every time it changes. Using this article and others, I'm attempting to call the C# method I've...
30 Apr 2019 by MadMyche
The difference between the samples is all in what you are returning. The last line in your controller action is return Page();, which will return a plain Page Result with no data being passed into it. The last line of the samples are all return new JsonResult(lstString); which will return a...
30 Apr 2019 by Member 12274397
OnPostSearchCurrGroup() method needs to return Json object,hence it should be of type JsonResult instead actionresult and should return new JsonResult(lstString) instead return Page().
1 May 2019 by Member 14164795
(After making changes based on this question I made yesterday) My goal is to dynamically update two fields every time there's a change made to a dropdown list. In my example, the dropdown is a list of employees, and I need the group/subgroup fields to update every time it changes. I'm...
1 May 2019 by Christian Graus
Do you know how to use Chrome debugging tools? You should use them to watch this code, see what the request returns and see what happens when it succeeds. Your code looks to me like it defines two functions in your success method, it doesn't actually call anything? What is OnSuccessed? As...
12 Apr 2018 by Member 10666843
we are going to make an application should sends data from mobile application (xamarin-forms) to get data from console application (that will be installed on local "client" machine) using webapi hosted on (middle server), i was thinking in SignalR to make the mobile application and console...
19 Apr 2017 by Mukesh Kumar
In my App whatever i set redirect_Uri it's not taking that it's always taking http://localhost:randomport/authorize.therefore i'm getting below exception:- failed to open in browser...
19 Jun 2023 by Tim the Gamer
I really like the progress am making learning ASP.NET. Yesterday I started off and learnt that you need to have two folders in your ASP project where one(Pages) contains the ASP Razor pages and the other one(wwwroot) contains the styling files...
19 Jun 2023 by Graeme_Grant
Normally, this means that you have more than one route with the same POST signature, ie: same params. Also, your Form properties are not correct. Refer to: Tag Helpers in forms in ASP.NET Core | Microsoft Learn[^]. According to the sample in the...
12 Sep 2018 by Rahul Rajat Singh
In this article, we will try to understand the concept of middleware in ASP.NET core.
15 Feb 2021 by Shenwei Liu
Presenting an advanced Angular modal dialog service and demonstrating dialog uses and issue resolutions (updated to Angular 11 and available with npm library package).
6 Sep 2022 by Fiseha Negasi
The address record was working before adding forgot password, the issue was on the startup file with the provider, if it is removed the fig 1 code from the startup file, the address record will be displayed. Please I need help to resolve this...
9 Mar 2022 by Coding Notes
An introduction to ASP.NET Core MVC
12 Mar 2022 by Coding Notes
An introduction to ASP.NET Core MVC
17 Mar 2022 by Coding Notes
An introduction to ASP.NET Core MVC
13 Jan 2021 by Member 14769019
Hi everyone, I have a sample excel template. I want to write the data from the database on this template. But I am facing such an error. I'm using NPOI library. IWorkbook workbookMerged; using (var file = new...
23 Feb 2023 by Hasitha Wijesooriya
I am trying to run my lambda project in Asp.net Core. I attempted several solutions but received the same error. FileNotFoundException: Could not load file or assembly 'File Processing, Culture=neutral, PublicKeyToken=null'. The system cannot...
2 Jun 2018 by Juan G. Carmona
1 Oct 2017 by Iman Memarpour
How to set up your environment to use Angular CLI with your ASP.NET Core 2.0 Angular template
6 Dec 2020 by Shenwei Liu
An Angular sample application that includes selecting, adding, updating, and deleting data with HttpClient service, reactive forms for object and array types, in-line data list editing, custom input validations, and various other features (latest update with Angular 11 CLI and ASP.NET Core 5.0).
5 Feb 2020 by Fred Song (Melbourne)
Demonstrating a series of Angular fundamentals through an Angular 7 application.
1 Oct 2019 by Vincent Maverick Durano
A simple yet organized project template for building ASP.NET Core APIs in .NET Core 3.x
1 Dec 2019 by Vincent Maverick Durano
The new version of ApiBoilerPlate has recently been released. In this post, we will take a look at the new features added to the template.
19 Dec 2019 by Jeremy Hutchinson
I’ve been spoiled by Asp.Net and expect app settings to just work, but there is no easily configured app settings story for client-side Blazor yet. What I’m looking for is the ability to set some settings on a per-environment (dev/test/beta/prod) through Azure App Service Application Settings.
12 Nov 2018 by Vlad Neculai Vizitiu
Application triggers for ASP.NET Core 2.1 Entity Framework Core
4 Aug 2019 by Richard MacCutchan
identity framework depend on entityframework core 2.2 - Google Search[^]
18 Jan 2019 by ahmed_sa
Problem i work on asp.net core 2.1 visual studio 2017 code first with repository pattern when do create database i do as following Add-Migration InitialCreate but i got error Entity type 'Employee' has composite primary key defined with data annotations. To set composite primary key, use...
18 Jan 2019 by Richard Deeming
No: Keys (primary) - EF Core | Microsoft Docs[^]: Composite keys can only be configured using the Fluent API - conventions will never setup a composite key and you can not use Data Annotations to configure one. You have to use the fluent API to set up a composite key. class MyContext :...
14 Feb 2019 by ahmed_sa
Problem I work on asp.net core 2.1 project with sql server 2014 this project is mvc controller not web api . we decide to make client side with angular 7 so that i will have two project project have angular client side another project is asp.net core mvc or web api server side . so that...
14 Feb 2019 by TheRealSteveJudge
Your project must have a Web API controller. Please have a look at this article: Angular 7 with .NET Core 2.2 - Global Weather (Part 1)[^]
14 Aug 2017 by Member 13360571
I have a ASP .Net Core 1.1 application which worked up till 2 weeks ago. I opened the application today and get the following errors. 'WebHostBuilder' does not contain a definition for 'UseKestrel' and no extension method 'UseKestrel' accepting a first argument of type 'WebHostBuilder' could be...
14 Aug 2017 by David_Wimbley
Without you actually telling what you've tried (unless reinstalling nuget is truly all you've done) I'll take a stab at it. A quick google search looks like your issue for DbContextOptionsBuilder is missing the Microsoft.EntityFrameworkCore.SqlServer reference. 'DbContextOptionsBuilder' does...
28 Jun 2020 by Vadim Tomashevsky
I have an Interface: public interface ICategory { int Id {Get; Set}; string name {Get; Set}; ICollection Category {Get; Set}; } public class Category:ICategory { public Category() { IItems = new HashSet(); 1. at the...
28 Jun 2020 by OriginalGriff
Try: public interface ICategory { public int Id {get; set}; public string Name {get; set}; public ICollection Category {get; set}; } See here: C# Programming: Creating and Using a Generic Interface[^]
26 Jan 2022 by Sni.DelWoods
My edit view uses partial views to edit different addresses. On submit, the form keys are identical for street and are not assigned to the model. I get: Street[0]: Silicon Road Street[1]: Main Avenue I need something like: customer.Street:...
25 Jan 2022 by M Imran Ansari
You can modify your code in respectively like: EditForm.cshtml @await Html.PartialAsync("AddressEditPartial.cshtml", @Model.Order) AdressEditPartial.cshtml @Model Order
25 Jan 2022 by Richard Deeming
Use the tag helper instead of the PartialFor extension method: @Model EditForm ...
5 Sep 2017 by User 1043264
How to perform unit and integration testing of ASP.NET Core and EF Core. Continue reading...
9 Nov 2018 by YasIkeda
Tutorial about how to add authentication functionalities to your existing ASP.NET Core project using Microsoft.AspNetCore.Identity.UI package
13 Nov 2018 by Vlad Neculai Vizitiu
ASP.NET Core 1.1 and Identity Adventures
15 Dec 2017 by O.Nasri
ASP.NET Core 2.0 & Angular 4: through this tutorial, you will learn how to build from scratch a web application for vehicles management
6 Sep 2017 by User 1043264
How to use SignalR Core in ASP.NET Core 2.0 web applications to provide real-time communication. Continue reading...
14 Apr 2018 by Pramod Singh (C)
Im developing application in asp.net core 2.0 and wants to implements SSO (Single SignIn) to my existing application so any one can help how can i implements this functionality. 1. Can i use same authentication of Office 365 or is there any better WAY SO please help with step by step. 2. I want...
11 Feb 2018 by David_Wimbley
I would start with a google search as I am 100% confident there is going to be something useful for you to follow. I would also encourage you to seek out a team lead or dev manager for guidance as I am not sure your company would appreciate a forum architecting their SSO server/functionality for...
14 Apr 2018 by Dinesh Singh Kushwaha (Dev)
Hi friend , My manager asked me to implement same kind of authentication, i can say that it is single sign on because he wanted when i am being log-in on intranet user then system should pick window user otherwise system should prompt internet login page with username and password. My idea was...
29 Aug 2018 by Vincent Maverick Durano
A quick walk-through on building an ASP.NET Core 2.0 application on MAC and running it on Docker container
8 Sep 2017 by User 1043264
How to implement authorization in ASP.NET Core. Continue reading...
8 Sep 2017 by User 1043264
How to implement bearer authentication in ASP.NET Core 2.0. Continue reading...
5 Sep 2017 by User 1043264
How to use distributed caching and Redis in ASP.NET Core. Continue reading...
9 Oct 2017 by User 1043264
How to read configuration settings from various sources and use them throughout your application. Continue reading...
8 Sep 2017 by User 1043264
How to implement cookie authentication in ASP.NET Core 2.0 Continue reading...