These labs provide a group of debugging scenarios focused on helping you get some hands on experience in debugging the most common type of IIS issues. For example, hang/performance, crash and memory issues. Installation These labs are focused IIS 8.5, but can be run on the following versions of IIS IIS Version Operating System IIS […]
Read More →Azure Functions Labs – Information and setup instructions
I started my learning of Azure Functions, I.e. Service-less computing by writing this .NET Core Console application which calls the following Azure Functions each with a different trigger type. I hosted the console application on GitHub here. You will need the .NET Core runtime installed on your work station to run the console app, check […]
Read More →How and why I built a cluster of Raspberry Pi’s (Part 3)
By the time I finish this article I will have completed the hardware configuration part of the PERKNET-SUPERCOMP project. Building the hardware is the easy part, which is kind of why I am having it take so long, coders are procrastinators. Getting the software configured and working requires much more effort, especially because I am […]
Read More →Microsoft Authenticator App
If you are still using UID and Password as the only means for authentication, you might consider implementing Multi Factor Authentication (MFA). One way to do this is by using the Microsoft Authenticator App which you can read all about it here. I am writing this mostly to help me remember how I configured it […]
Read More →Using the as keyword versus boxing in C#
When I convert one object to another using the keyword “as” and the original value is not of that type, the converted value simply becomes NULL. For example, if theItem is of type MessageBox, then row will be NULL. DataRowView row = theItem as DataRowView; However, when using this code, I.e. boxing. DataRowView row = […]
Read More →Searching a generic List collection using C#
Before you begin loading and populating collections, you should decide which collection to use based on the requirements. Some collections are built for speed when selecting, some are built for speed when loading, other for sorting, etc. A good description can be found here. This example I will search a strongly typed List for a […]
Read More →How to convert a string to a byte array or convert a byte array to a string with C#
I needed to convert a selection from a treeview into an XML string and then store into a database column of type LONG on Oracle and/or of type varchar(MAX) on MS SQL Server. The XML was not saved as a file first, so true it could have been saved in a string column, however, the […]
Read More →Common Language Runtime
Runtime, in computer terms, is the time in which the computer program is actively executing the written code. The Common Language Runtime is a platform where a managed program executes. There are many advantages when a managed program is run in this environment. For example: Easy usage of components written in other programming languages Garbage […]
Read More →Base Class Library (BCL)
The .NET framework provides a set of base class libraries which provide functions and features which can be used with any programming language which implements .NET, such as Visual Basic, C# (or course), Visual C++, etc. The base class library contains standard programming features such as Collections, XML, DataType definitions, IO ( for reading and […]
Read More →Create a Random or Sequential GUID using ASP.NET and C#
The 2 controls above create either a GUID or a Sequential GUID. Generate a Radom GUID online or a Generate a Sequential GUID online using the above control. There is nothing too complicated about creating a random GUID. Using the below C# code provides a unique value. string uniqueRandomKey = Guid.NewGuid().ToString(); I like to use […]
Read More →