Value and Reference Types in C#

The two main categories of types in C# that most objects and variables are categorized under, are value types and reference types. The main differences between these types are the values and how they are stored in memory. A value type variable directly contains a value that is stored on the stack, whereas a reference type variable contains a reference to a value or object that is stored on the heap.

Keep reading

Visual Studio 2019 Web.Config Error

I’ve been randomly getting an ambiguous error message related to the web.config file for various Web Forms projects I’ve worked on in Visual Studio 2019. It states, ‘There is an error in web.config. Please correct before proceeding.(You might rename the current web.config and add a new one).’

Keep reading

.NET Framework Code Execution Process

In a previous post I wrote about Managed Code vs Unmanaged Code, and that got me thinking… when you write, compile, and run an application, there’s a lot of things going on under the hood and I think it’s important to have an idea of the process to better understand how your applications work. Since I mostly work in the .NET world myself, I’m going to briefly explain the typical process that occurs when managed .NET code is compiled and executed by the .NET Framework

Keep reading

Managed Code vs Unmanaged Code

As a .NET developer, you may hear or see the terms managed code and unmanaged code from time to time. You may even be asked about them in job interviews. They are terms that can often be overlooked by new .NET developers that are just starting to learn. I think it’s important to at least have a high-level idea of the two terms so I whipped up this blog post to try and illustrate.

Keep reading

Visual Studio Missing Start Without Debugging Option

One issue I’ve experienced with Visual Studio a few times over the years is when the ‘Start Without Debugging’ option under the Debug menu decides to disappear. I have no clue what causes this or what I’m doing to make the option hide from me. I can always still use Ctrl + F5 to run my project without debugging, but for some reason it bothers me when the option is missing so here are two ways to add it back.

Keep reading

Differences Between Sites, Applications, and Virtual Directories in IIS

I’ve been using IIS 10 regularly over the last 2 years now and one thing that’s always confused me was the differences between sites, applications, and virtual directories and what they’re used for.

Keep reading

What I Learned from .NET Conf 2020

Last week .NET Conf 2020 happened. Taking place November 10th-12th, the conference celebrated 10 years as a virtual event for developers. This year was the first time I was able to watch most of the sessions in a timely manner so I decided to highlight what I learned.

Keep reading