You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/asp-net.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.devlang: csharp
8
8
9
9
# Configure Application Insights for your ASP.NET website
10
10
11
-
This procedure configures your ASP.NET web app to send telemetry to the [Application Insights](./app-insights-overview.md) feature of the Azure Monitor service. It works for ASP.NET apps that are hosted either in your own IIS servers on-premises or in the cloud.
11
+
This procedure configures your ASP.NET web app to send telemetry to the [Application Insights](./app-insights-overview.md) feature of the Azure Monitor service. It works for ASP.NET apps that are hosted either in your own Internet Information Servers (IIS) on-premises or in the cloud.
@@ -55,7 +55,7 @@ This section guides you through automatically adding Application Insights to a t
55
55
56
56
## Add Application Insights manually
57
57
58
-
This section guides you through manually adding Application Insights to a template-based ASP.NET web app. This section assumes that you're using a web app based on the standard MVC web app template for the ASP.NET Framework.
58
+
This section guides you through manually adding Application Insights to a template-based ASP.NET web app. This section assumes that you're using a web app based on the standard Model, View, and Controller (MVC) web app template for the ASP.NET Framework.
59
59
60
60
1. Add the following NuGet packages and their dependencies to your project:
61
61
@@ -65,7 +65,7 @@ This section guides you through manually adding Application Insights to a templa
65
65
66
66
2. In some cases, the *ApplicationInsights.config* file is created for you automatically. If the file is already present, skip to step 4.
67
67
68
-
If it's not created automatically, you need to create it yourself. In the root directory of an ASP.NET application, create a new file called *ApplicationInsights.config*.
68
+
Create it yourself if it's missing. In the root directory of an ASP.NET application, create a new file called *ApplicationInsights.config*.
69
69
70
70
3. Copy the following XML configuration into your newly created file:
71
71
@@ -220,7 +220,7 @@ This section guides you through manually adding Application Insights to a templa
220
220
<ConnectionString>Copy connection string from Application Insights Resource Overview</ConnectionString>
221
221
```
222
222
223
-
5. At the same level of your project as the *ApplicationInsights.config* file, create a folder called *ErrorHandler* with a new C# file called *AiHandleErrorAttribute.cs*. The contents of the file will look like this:
223
+
5. At the same level of your project as the *ApplicationInsights.config* file, create a folder called *ErrorHandler* with a new C# file called *AiHandleErrorAttribute.cs*. The contents of the file look like this:
224
224
225
225
```csharp
226
226
using System;
@@ -351,7 +351,7 @@ This section guides you through manually adding Application Insights to a templa
351
351
352
352
```
353
353
354
-
You have now successfully configured server-side application monitoring. If you run your web app, you'll see telemetry begin to appear in Application Insights.
354
+
At this point, you successfully configured server-side application monitoring. If you run your web app, you see telemetry begin to appear in Application Insights.
355
355
356
356
## Add client-side monitoring
357
357
@@ -445,16 +445,18 @@ To remove Application Insights, you need to remove the NuGet packages and refere
445
445
1. Uninstall the Microsoft.ApplicationInsights.Web package and remove its dependencies by using the [NuGet Package Manager](/nuget/consume-packages/install-use-packages-visual-studio#uninstall-a-package) and its [Uninstall options](/nuget/consume-packages/install-use-packages-visual-studio#uninstall-options) within the [NuGet Package Manager Options control](/nuget/consume-packages/install-use-packages-visual-studio#nuget-package-manager-options-control).
446
446
1. To fully remove Application Insights, check and manually delete the added code or files along with any API calls you added in your project. For more information, see [What is created when you add the Application Insights SDK?](#what-is-created-when-you-add-the-application-insights-sdk).
447
447
448
-
### What is created when you add the Application Insights SDK?
448
+
### What is automatically created when you add the Application Insights SDK?
449
449
450
-
When you add Application Insights to your project, it creates files and adds code to some of your files. Solely uninstalling the NuGet Packages won't always discard the files and code. To fully remove Application Insights, you should check and manually delete the added code or files along with any API calls you added in your project.
450
+
When you add Application Insights to your project, it automatically creates files and adds code to some of your files. Solely uninstalling the NuGet Packages doesn't always discard the files and code. To fully remove Application Insights, you should check and manually delete the added code or files along with any API calls you added in your project.
451
451
452
452
When you add Application Insights Telemetry to a Visual Studio ASP.NET project, it adds the following files:
453
453
454
454
- ApplicationInsights.config
455
455
- AiHandleErrorAttribute.cs
456
456
457
-
The following pieces of code are added:
457
+
The following pieces of code are automatically added:
458
+
459
+
458
460
459
461
-[Your project's name].csproj
460
462
@@ -489,7 +491,7 @@ The following pieces of code are added:
0 commit comments