The location from which a process is invoked is important. A process, I.e. an executable (.exe) is the program which contains the entry point to the code which needs to run. If the location is in a relative position related to the assemblies it requires, then the .exe can use relative paths to access an […]
Read More →Tags: ASP.NET
Bring Your Own Storage (BYOS) Azure App Service map directory path
NOTE: it is now possible to achieve this in the Azure portal which means the modification of the XDT file is no longer necessary. It will still work and knowing about this capability might help you implement something which does not currently have an interface to do so…yet. Here is some information about doing this […]
Read More →Beginning C# and .NET, 2021 Edition
I would like to proudly announce the release and availability of my new Beginning C# and .NET 2021 Edition book, which was co-authored with Jon Reid. The book contains over 800 pages of material relating to the skills and knowledge required to become a great C# programmer. The book is designed around the premise that […]
Read More →Debugging an ASP.NET Core app using WinDbg, plus some other information
Things change and as I always say “that’s better than the alternative”. Although I have yet to put my finger on it, the behavior I experience when debugging Core applications is different than those which have come before. If I ever do figure out the specifics of those differences, I will write them down 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 →ASP.NET Compilation Azure App Service, Web Project, Web Site
There are numerous flavors of ASP.NET modules, for example Web Forms (Web Sites and Web Applications), Web Pages, Model-View-Controller (MVC) and the newest one Core. In this article I want to discuss some learnings about the difference between the compilations of an ASP.NET Web Site (Figure 1) and an ASP.NET Web Application (Figure 2). Figure […]
Read More →How to read, unable to read appsettings.json values ASP.NET Core
I wrote this article here “Database connection string when swapping between App Servers slots” and if you look at the last paragraph I mentioned a ‘gotcha’ when you have an application setting, “AppSetting” in your web.config file which has the same name as an application setting you have configured, via the portal of your Azure […]
Read More →ASP.NET Core 2.1 and HTTP Error 502.5 – Process Failure
I was deploying my ASP.NET Core 2.1 64-bit HelloWorld application and got this error, Figure 1. Figure 1, ASP.NET Core 2.1 502.5 x64 64 bit Common causes of this issue: The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port […]
Read More →How to create a Pie chart using ASP.Net and C#
Since .Net 4.0, we no longer need to download and install the Chart Control to get charting capabilities in ASP.Net, Window Forms or WPF. This is becuase the the Charting control is now part of .Net 4.0 itself. Although all you need to know about Charting in ASP.Net can be found here I thought I […]
Read More →Localizing an ASP.Net program using C#
See also the article about localizing a WPF system here. See also my video about localizing a WPF system here. These days when you are designing a GUI (Graphical User Interface) one of the many topics to discuss is that of localization. Simply, localization means that local date format, currency and language will be supported […]
Read More →