Author: Benjamin Perkins

Targeting a specific version of the .NET Framework

Benjamin Perkins C#

I find numerous opinions and understandings about side-by-side and in-place installations of the .NET Framework.  Here is my favorite explanation of this “.NET Versioning and Multi-Targeting – .NET 4.5 is an in-place upgrade to .NET 4.0”.  I also link to that same article in one of my IIS labs here, “Lab 5: Basic and Advanced […]

Read More →

What is the current .NET version on an Azure App Service

Azure App Service Benjamin Perkins

I have an App Service here (currentdotnetversion) that shows the output of the current (when I wrote this article) .NET version using C# code.  Here is a partial code snippet: protected void Page_Load(object sender, EventArgs e) {    const string subkey = @”SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\”;    using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine,           RegistryView.Registry32).OpenSubKey(subkey))    { […]

Read More →

How to Backup/Restore an Azure App Service using Azure PowerShell

PowerShell Benjamin Perkins

Use these Azure PowerShell cmdlets: New-AzureRmWebAppBackup Restore-AzureRmWebAppBackup Get-AzureRmStorageAccountKey New-AzureStorageContainerSASToken Don’t forget that this is open source, so you can see what these cmdlets are doing on GitHub here. Note that creating and restoring backups are only available in STANDARD and PREMIUM mode. Check out how to do the same using BASH from the console here. […]

Read More →

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. 404.63.0

IIS Benjamin Perkins

I was troubleshooting this issue on an Azure App Service (ASE) and found the 404 was actually a 404.63.0 which translates into “Site not found: Hostname lookup failed, we are probably under attack”.  The interesting thing was that it was only reproducible randomly and after I sat an hit the F5 or refreshed the page […]

Read More →