By using this site, you acknowledge that you have read and understand our Cookie policy, Privacy policy and Terms .
account_circle Raymond

Blog posts about ASP.NET Core

local_offer asp.net core 2

visibility 2378
comment 0
thumb_up 0
access_time 3 years ago

Context When I followed OpenIDDict refresh flow sample, I constantly got the issue “The refresh token is no longer valid”, which is returned by the following code in my authorization web api controller: result.Content = new OpenIdConnectResponse  &...

open_in_new View

local_offer dotnetcore local_offer bootstrap

visibility 1773
comment 3
thumb_up 0
access_time 2 years ago

Background When upgrading Bootstrap to v4.0.0 release, the bundler and minifier doesn’t work properly due to CSS variable is commonly used: :root{--blue:#007bff; About 26 errors will show up in the Error List with the following message: ...

open_in_new View

local_offer asp.net core 2

visibility 15009
comment 2
thumb_up 0
access_time 3 years ago

In traditional asp.net applications, Server.MapPath is commonly used to generate absolute path in the web server. However, this has been removed from ASP.NET Core. So what is the equivalent way of doing it?

open_in_new View

local_offer asp.net core local_offer gulp

visibility 174
comment 0
thumb_up 0
access_time 8 months ago

Background If you have been working on ASP.NET projects in the past years, you probably have heard or used quite a few client library management frameworks/tools. For example, Bower, npm, Gulp, Grunt, Webpack, Yarn, Parcel, Libman, etc. Before SPA became popular, the default ASP.NET (or A...

open_in_new View

local_offer asp.net core 2 local_offer asp.net core local_offer dotnetcore local_offer open-banking

visibility 181
comment 0
thumb_up 0
access_time 10 months ago

I’ve just started an asp.net core 2.2 based implementation for Australia Consumer Data Standards (published by Data 61). Opening Banking initiative will follow these standards. The purpose is to help you to get familiar with these standards, especially the APIs that need to be implemented. ...

open_in_new View

local_offer .net core local_offer lite-log

visibility 1657
comment 0
thumb_up 0
access_time 2 years ago

After upgrading to ASP.NET Core 2.1 (.NET Core SDK 2.1.301), you may encounter the following error about encoding: System.ArgumentException    HResult=0x80070057    Message='Cyrillic' is not a supported encoding name. For information on defining a custo...

open_in_new View

local_offer asp.net core 2 local_offer .net core

visibility 1545
comment 0
thumb_up 0
access_time 2 years ago

In .NET Core 2.x, Windows Forms or WPF are not implemented since they are based on GDI+ and DirectX respectively in Windows. In .NET Core 3.0, there is plan to add Desktop Packs which includes UWP. WPF and Windows Forms. However, they will still be Windows-only. In .NET Core applications, you may...

open_in_new View

local_offer dotnet core local_offer asp.net core

visibility 3625
comment 0
thumb_up 0
access_time 3 years ago

IP Address In ASP.NET Core, Request.UserHostAddress has been removed though that attribute exists in the traditional ASP.NET applications. We can use HttpContext.Connection to retrieve the remove client IP address: var ipAddress = HttpContext.Connecti...

open_in_new View

local_offer asp.net core local_offer identity core 2

visibility 12601
comment 0
thumb_up 0
access_time 3 years ago

The identity system in ASP.NET has evolved over time. If you are using ASP.NET Core, you probably found User property is an instance of ClaimsPrincipal in Controller or Razor views. Thus to retrieve the information, you need to utilize the claims.

open_in_new View

local_offer .net core local_offer Azure

visibility 5186
comment 0
thumb_up 0
access_time 3 years ago

In ASP.NET Core, we can easily use user secrets to manage our password or credentials. This post will summarize the approaches we can use after the websites are deployed into Azure.

open_in_new View