Sad Tux - Windows bias detected
This page contains Windows bias

About This Page

This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.

Bias Analysis

Detected Bias Types
windows_first
missing_linux_example
windows_tools
Summary
The documentation page demonstrates a Windows bias by exclusively referencing Windows-based deployment and configuration patterns, such as Visual Studio publishing, Kudu (CMD/PowerShell), and Windows filesystem paths. There are no Linux-specific examples or instructions, and Windows tools and workflows are mentioned first and exclusively, leaving Linux users without guidance for equivalent tasks.
Recommendations
  • Add Linux-specific examples for listing .NET Framework versions, such as using SSH or Linux-based diagnostic tools in App Service Linux environments.
  • Include instructions for accessing Kudu or equivalent diagnostic consoles in Linux-based App Service plans.
  • Provide guidance for deploying ASP.NET apps from Linux development environments (e.g., using VS Code, CLI, or Git from Linux).
  • Mention differences in environment variable access and configuration between Windows and Linux App Service plans.
  • Clarify which instructions apply only to Windows App Service and provide parallel steps for Linux where possible.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-12 00:00 #99 completed Biased Biased
2026-01-11 06:20 #98 completed Clean Clean
2026-01-11 00:00 #95 cancelled Clean Clean
2026-01-10 00:00 #92 completed Biased Biased
2026-01-09 00:00 #87 cancelled Clean Clean
2026-01-08 00:00 #84 in_progress Clean Clean
2026-01-06 22:28 #78 completed Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-22 00:00 #24 cancelled Clean Clean
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean

Flagged Code Snippets

ls "D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework"
ls "D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework"
A value of `v4.0` means the latest CLR 4 version (.NET Framework 4.x) is used. A value of `v2.0` means a CLR 2 version (.NET Framework 3.5) is used.

## Set .NET Framework runtime version

By default, App Service uses the latest supported .NET Framework version to run your ASP.NET app. To run your app using .NET Framework 3.5 instead, run the following command in the [Cloud Shell](https://shell.azure.com) (v2.0 signifies CLR 2):

Redeploy your app with the updated *web.config*. You should now see the same detailed exception page.

## Access diagnostic logs

You can add diagnostic messages in your application code using [System.Diagnostics.Trace](/dotnet/api/system.diagnostics.trace). For example: 

## Get detailed exceptions page

When your ASP.NET app generates an exception in the Visual Studio debugger, the browser displays a detailed exception page. A generic error message replaces that page in App Service. To display the detailed exception page in App Service, open the *web.config* file and add the `<customErrors mode="Off"/>` element under the `<system.web>` element. For example: