.NET Framework

Everything about .NET framework.

Tuples in C# (4.x, 7.0, 7.1)

33 views   0 comments last modified about 2 months ago C#

What is a tuple? Tuple is an ordered sequence, fixed-size, immutable and of heterogeneous objects. Tuple has been existing in other languages such as F#, Python, Perl and etc. for a long time. It was first introduced into C# from C# 4.0 and has been evolving over time. Since C# 7.1, tuple...

View detail

Invoke Hadoop WebHDFS APIs in .NET Core

35 views   0 comments last modified about 2 months ago lite-log hadoop hdfs

Background Apache doesn't provide native official .NET APIs for Hadoop HDFS. The HTTP REST API supports the complete FileSystem / ...

View detail

Logging configuration in .NET core

140 views   0 comments last modified about 7 months ago .net core

.NET core introduces a logging API that works with a number of logging frameworks. The built-in providers are configurable and extensible to support different level loggings.

View detail

Sending Emails in .NET Core Applications

891 views   0 comments last modified about 7 months ago .net core

Sending emails are common in applications. For example, when user registers, we need to send account activation emails. This post summarize the approaches we can use to send emails in .NET Core 1.x and 2.x.

View detail

Retrieve Http client request metadata like IP address and languages in asp.net core

358 views   0 comments last modified about 7 months ago dotnet core asp.net core

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...

View detail

Migrating from ASP.NET Core 1.x to ASP.NET Core 2.0

652 views   2 comments last modified about 8 months ago

Migrating from ASP.NET Core 1.x to 2.0 is not an easy job especially if you have customized Identity and used customized authentication. This post summarizes the issues and errors I have experienced and their resolutions when upgrading my project. Hopefully it can save you sometime if you are doi...

View detail

Migrating from ASP.NET Core 1.x to ASP.NET Core 2.0 – Issues Continued

527 views   0 comments last modified about 8 months ago

Other related issues are found during my migration. Unable to Change Identity Table Names ...

View detail

Migrate ASP.NET Core Projects – VS2015 to VS2017 and TFS2015 to TFS2017 Issues and Fixes

327 views   0 comments last modified about 2 years ago .NET ASP.NET dotnet core asp.net core 2

Context Before Visual Studio 2017 was released, I was implementing my ASP.NET Core project using VS2015. TFS2015 is used for Continuous Build and Deployment for my projects. After migrating to VS2017, there are couple of issues I encountered in my environment: VS2017 has ...

View detail

dotnet.exe : No executable found matching command "dotnet-publish-iis"

726 views   0 comments last modified about 2 years ago dotnet core

When upgrading from .net core 1.0 to 1.1, you may encounter the following error when running dotnet publish command: dotnet.exe : No executable found matching command "dotnet-publish-iis" The resolution is simple: adding the following line into the project.json file. At moment, the la...

View detail

LINQ to Teradata

728 views   0 comments last modified about 3 years ago

In my previous post, I demonstrated how to use ADO.NET to connect to Teradata in your OLTP projects.  In this sample, I am going to implement the same sample using ADO.NET Entity Model, Entity Framework and LINQ. ...

View detail