.NET Developer, Microsoft MVP

All Posts
(313)313

27

ASP.NET Core 2.2 has been in place for some time, with a new feature that can use the new AspNetCoreModuleV2 and deploy with InProcess mode on IIS to dramatically improve performance. These days Azure App Service finally completed the deployment of this new version of the module, I configured my blog to the new module, and it exploded in production. Let's see why and how to solve it.
If you don't...

21

One of the things programmers hate most is probably setup a computer. Because the programmer's computer environment configuration is very different from normal people. In general, it takes several hours to manually install a new development machine. Let this process automating, after all, the essence of programming is to let complex things simplify, find a way to be lazy!
In fact, automatic insta...

18

Microsoft Azure has a very powerful monitoring tool called Application Insights. It can monitor every aspect of our web application, including client and server metrics, error details, performance and so on. My blog is also using Application Insights, but everytime I want to see the data, I have to go to Azure portal, even for the basic metrics like page views or server response time. I want a way...

15

Nowadays, computer technology is breaking the limits of human beings every day, bringing countless innovations. Getting more teenagers to learn programming techniques will bring more wonderful surprises to our world.
With this in mind, on December 8th, the "Hour of Code" event was held in Shanghai Sanda University campus, sponsored by Microsoft China Public Welfare group. Three Microsoft MVPs W...

13

.NET Core 2.2 has been release for couple of weeks. However, the build pipeline is still failing these days. Microsoft has not installed .NET Core 2.2 SDK to the hosted VS2017 agents yet. Let's see how to work around this issue and have a success build for our .NET Core 2.2 apps.
1. Add Task
Edit your build definition, and click the "+" button to add a new task.
2. Add .NET Core SDK Install...

25

When we are dealing with URL encode in .NET Core 2.1, there are two APIs:&nbsp;System.Net.WebUtility.UrlEncode and&nbsp;System.Web.HttpUtility.UrlEncode. What's the difference between them? And which one should we prefer to use? I have done some research today, here's my findings.
1. Test Results
First, let's see some tests. I've tested 2 couples of the same method between WebUtility class and H...

05

In certain applications, we may need an on-screen ruler that indicates pixels on the screen. However, the only built-in ruler in UWP is within the InkToolbar control, we are not able to use it elsewhere. So, I will teach you how to build a pixel ruler which can be used anywhere in your UWP applications.
The Demo App
Create a new blank UWP application called PixelRulerUwp with minimal runtime v...

31

More and more people are talking about .NET Core these days. It is true that .NET Core is the future, and .NET Framework will still be maintained because very large number of applications can&rsquo;t be migrated in a short time.
.NET Core and .NET Framework are just like electric cars and gasoline powered cars. Gasoline cars is mature, and you can drive it without any problem, but electric cars h...

13

If you want to use captcha code to protect your website from spam messages, there are a few options such as Google ReCaptcha and captcha.com. Both of them can be integrated into ASP.NET Core applications. However, you may still want to generate the captcha code yourself for some reason, such as your website may be used in mainland China... This post will show you how to generate and use captcha co...

Many thanks. We where test crawling our website and noticed a difference in the URLs. Now we know why :) It's already hard to keep consistency when developing applications in a team. Now even need to be more careful with selecting which UrlEncode to use by default.