Skip to content

Commit 1fa5204

Browse files
Merge pull request #302241 from TimShererWithAquent/us446304-05
Freshness Edit: Azure App Service (3 of 3)
2 parents 161f819 + 8a8d418 commit 1fa5204

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

articles/app-service/configure-language-dotnet-framework.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ description: Learn how to configure an ASP.NET app in Azure App Service. This ar
55
ms.devlang: csharp
66
ms.custom: devx-track-csharp, devx-track-azurecli, devx-track-dotnet
77
ms.topic: article
8-
ms.date: 06/02/2020
8+
ms.date: 07/07/2025
99
author: cephalin
1010
ms.author: cephalin
11+
#customer intent: As an ASP.NET developer, I want to configure an ASP.NET app using Azure App Service to take advantage the Azure features.
1112
---
1213

1314
# Configure an ASP.NET app for Azure App Service
1415

1516
> [!NOTE]
1617
> For ASP.NET Core, see [Configure an ASP.NET Core app for Azure App Service](configure-language-dotnetcore.md). If your ASP.NET app runs in a custom Windows or Linux container, see [Configure a custom container for Azure App Service](configure-custom-container.md).
1718
18-
ASP.NET apps must be deployed to Azure App Service as compiled binaries. The Visual Studio publishing tool builds the solution and then deploys the compiled binaries directly, whereas the App Service deployment engine deploys the code repository first and then compiles the binaries.
19+
ASP.NET apps must be deployed to Azure App Service as compiled binaries. The Visual Studio publishing tool builds the solution and then deploys the compiled binaries directly. The App Service deployment engine deploys the code repository first and then compiles the binaries.
1920

20-
This guide provides key concepts and instructions for ASP.NET developers. If you've never used Azure App Service, follow the [ASP.NET quickstart](./quickstart-dotnetcore.md?tabs=netframework48) and [ASP.NET with SQL Database tutorial](app-service-web-tutorial-dotnet-sqldatabase.md) first.
21+
This guide provides key concepts and instructions for ASP.NET developers. If this article is your first experience with Azure App Service, follow [Deploy an ASP.NET web app](./quickstart-dotnetcore.md?tabs=netframework48) and [Deploy an ASP.NET app with Azure SQL database to Azure](app-service-web-tutorial-dotnet-sqldatabase.md) first.
2122

2223
## Show supported .NET Framework runtime versions
2324

@@ -29,7 +30,7 @@ For CLR 4 runtime versions (.NET Framework 4 and above):
2930
ls "D:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework"
3031
```
3132

32-
Latest .NET Framework version may not be immediately available.
33+
Latest .NET Framework version might not be immediately available.
3334

3435
For CLR 2 runtime versions (.NET Framework 3.5 and below):
3536

@@ -73,31 +74,31 @@ ConfigurationManager.ConnectionStrings["MyConnection"];
7374
}
7475
```
7576

76-
If you configure an app setting with the same name in App Service and in *web.config*, the App Service value takes precedence over the *web.config* value. The local *web.config* value lets you debug the app locally, but the App Service value lets your run the app in product with production settings. Connection strings work in the same way. This way, you can keep your application secrets outside of your code repository and access the appropriate values without changing your code.
77+
If you configure an app setting with the same name in App Service and in *web.config*, the App Service value takes precedence over the *web.config* value. The local *web.config* value lets you debug the app locally. The App Service value lets your run the app in product with production settings. Connection strings work in the same way. This way, you can keep your application secrets outside of your code repository and access the appropriate values without changing your code.
7778

7879
> [!NOTE]
7980
> Consider more secure connectivity options that don't require connection secrets at all. For more information, see [Secure connectivity to Azure services and databases from Azure App Service](tutorial-connect-overview.md).
8081
8182

8283
## Deploy multi-project solutions
8384

84-
When a Visual Studio solution includes multiple projects, the Visual Studio publish process already includes selecting the project to deploy. When you deploy to the App Service deployment engine, such as with Git, or with ZIP deploy [with build automation enabled](deploy-zip.md#enable-build-automation-for-zip-deploy), the App Service deployment engine picks the first Web Site or Web Application Project it finds as the App Service app. You can specify which project App Service should use by specifying the `PROJECT` app setting. For example, run the following in the [Cloud Shell](https://shell.azure.com):
85+
When a Visual Studio solution includes multiple projects, the Visual Studio publish process includes selecting the project to deploy. When you deploy to the App Service deployment engine, such as with Git, or with ZIP deploy [with build automation enabled](deploy-zip.md#enable-build-automation-for-zip-deploy), the App Service deployment engine picks the first Web Site or Web Application Project it finds as the App Service app. You can specify which project App Service should use by specifying the `PROJECT` app setting. For example, run the following command in the [Cloud Shell](https://shell.azure.com):
8586

8687
```azurecli-interactive
8788
az webapp config appsettings set --resource-group <resource-group-name> --name <app-name> --settings PROJECT="<project-name>/<project-name>.csproj"
8889
```
8990

9091
## Get detailed exceptions page
9192

92-
When your ASP.NET app generates an exception in the Visual Studio debugger, the browser displays a detailed exception page, but in App Service that page is replaced by a generic error message. 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:
93+
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:
9394

9495
```xml
9596
<system.web>
9697
<customErrors mode="Off"/>
9798
</system.web>
9899
```
99100

100-
Redeploy your app with the updated *Web.config*. You should now see the same detailed exception page.
101+
Redeploy your app with the updated *web.config*. You should now see the same detailed exception page.
101102

102103
## Access diagnostic logs
103104

0 commit comments

Comments
 (0)