Recently, I have started my journey to learn C programming using Visual Studio Code and Mingw-w64. What is Mingw-w64? It is created to support GCC compiler on Windows systems. GCC is the GNU Compiler Collection and GNU (stands for GNU's not Unix) is key component to help build operating systems like Linux. If you are... Continue Reading →
Peculiar case of “Unable to connect to web server ‘IIS Express'”
There was one particular ASP.NET Core project that I have left it for quite a long time. Therefore, I would need to refresh my memory in order to understand how it works by first running it in debugging mode in Visual Studio 2017. To my suprise, as soon as I pressed F5, there was a... Continue Reading →
How to access your localhost website from external LAN?
I was trying to access my localhost ASP.NET Core MVC website from another computer which sits in different LAN. Thus, I tried to google around and it does show some good solutions, however, I would need to refer to multiple places to get the final solution. So, I thought I could just compile them in... Continue Reading →
How to use ASP.NET Identity with ASP.NET Web Service and ASP.NET MVC?
ASP.NET Identity is much more powerful than legacy ASP.NET Membership which includes the support of external authentication from 3rd party providers. In one of my projects, I have an ASP.NET MVC app communicating with another ASP.NET Web Service app which contains all core business logic and data access. The MVC application essentially is just another... Continue Reading →
How to mock ASP.NET Core Identity?
I was having a bit of issue when I tried to test my class which needs UserManager<ApplicationUser> object and RoleManager<IdentityRole> object in constructor method. Both classes are from new membership system called ASP.NET Core Identity. You can learn more from Introduction to Identity on ASP.NET Core When I first googled for my problem, some people... Continue Reading →
Generate absolute URLs in ASP.NET MVC
Sometimes it's easier to create relative URL in development using Url.Content("~/yourimage.png"). It seems to be quicker to code this way. However, there are times that I need to generate absolute URL for public facing websites where SEO matters. Quickly google "why absolute url matters in seo", there is quite a number of blogs or articles... Continue Reading →
Using Debug Diagnostics Tool To Analyze Hang Issue
Just arrived at the office, without breakfast, I had complaint from boss that our website was very slow. Looking at the website, it was very slow indeed, only after a good few minutes, the website only started to load some texts barely while you still can see the rolling icon on web browser's tab. After... Continue Reading →
How to become a manager?
Nowadays, technology has become an integral part of any organization, for instance, manufacturing, marketing, operation and so no. Therefore, it is fair enough to conclude that technical experts have become an important factor for a company or organization success. Some technical experts would continue their effort as individual contributor according to their given roles or... Continue Reading →
My journey of using Join, GroupJoin and GroupBy – Part 2
As I continued doing my migration process to convert my existing project from ASP.NET Web Form to ASP.NET MVC using Entity Framework from my previous post, I had abit of issue with SQL LEFT JOIN. Basically, the SQL keywords return all records from left table and matched records from right table. NULL is returned from... Continue Reading →
My journey of using Join, GroupJoin and GroupBy – Part 1
As I was doing a migration process to convert existing project from ASP.NET Web Form to ASP.NET MVC using Entity Framework, I came across a bunch of SQL statements. Yeah, I know, we should not have any SQL statements in C# codes. Thus, while I was going thru all my codes to remove all SQL... Continue Reading →