Read here about Kontext's Cookie and Privacy policy. Dismiss

.NET Framework

Everything about .NET framework.

c#

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

64 views   0 comments last modified about 3 months ago

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
lite-log hadoop hdfs

Invoke Hadoop WebHDFS APIs in .NET Core

99 views   0 comments last modified about 4 months ago

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

View detail
.net core

Logging configuration in .NET core

188 views   0 comments last modified about 8 months ago

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

Sending Emails in .NET Core Applications

1063 views   0 comments last modified about 8 months ago

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
dotnet core asp.net core

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

597 views   0 comments last modified about 8 months 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...

View detail

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

775 views   2 comments last modified about 9 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

610 views   0 comments last modified about 9 months ago

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

View detail
.net asp.net dotnet core asp.net core 2

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

364 views   0 comments last modified about 2 years ago

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 core

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

790 views   0 comments last modified about 2 years ago

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

768 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