Category: C# Blogs

Configuration error, targetFramework 4.7

Benjamin Perkins C#

I was deploying some code to one of my IIS servers and got this YSOD as seen in Figure 1.  I had coded in Visual Studio 2017 with the .NET Framework 4.7 targeted from my ASP.NET Web Forms application I wrote. Figure 1, Server Error, targetFramework=”4.7” Server Error in “/” Application. Configuration Error Description: An […]

Read More →

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 →