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: support/azure/app-service/troubleshoot-dotnet-visual-studio.md
+45-49Lines changed: 45 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,12 +49,10 @@ Visual Studio provides access to a subset of the app management functions and co
49
49
50
50
1. If you aren't already signed in to Azure in Visual Studio, right-click **Azure** and select Connect to **Microsoft Azure Subscription** in **Server Explorer**.
51
51
52
-
An alternative is to install a management certificate that enables access to your account. If you choose to install a certificate, right-click the **Azure** node in **Server Explorer**, and then select **Manage and Filter Subscriptions** in the context menu. In the **Manage Microsoft Azure Subscriptions** dialog box, click the **Certificates** tab, and then click **Import**. Follow the directions to download and then import a subscription file (also called a *.publishsettings* file) for your Azure account.
52
+
An alternative is to install a management certificate that enables access to your account. If you choose to install a certificate, right-click the **Azure** node in **Server Explorer**, and then select **Manage and Filter Subscriptions** in the context menu. In the **Manage Microsoft Azure Subscriptions** dialog box, click the **Certificates** tab, and then click **Import**. Follow the directions to download and then import a subscription file (also called a *.publishsettings* file) for your Azure account.
53
53
54
54
> [!NOTE]
55
55
> If you download a subscription file, save it to a folder outside your source code directories (for example, in the Downloads folder), and then delete it once the import has completed. A malicious user who gains access to the subscription file can edit, create, and delete your Azure services.
56
-
>
57
-
>
58
56
59
57
For more information about connecting to Azure resources from Visual Studio, see [Assign Azure roles using the Azure portal](/azure/role-based-access-control/role-assignments-portal).
60
58
2. In **Server Explorer**, expand **Azure** and expand **App Service**.
@@ -443,43 +441,43 @@ Detailed error logs provide some additional information about HTTP requests that
:::imagetype="content"source="./media/web-sites-dotnet-troubleshoot-visual-studio/tws-downloadicon.png"alt-text="Screenshot of the Output window showing the Download Streaming Logs button highlighted.":::
466
+
:::imagetype="content"source="./media/web-sites-dotnet-troubleshoot-visual-studio/tws-downloadicon.png"alt-text="Screenshot of the Output window showing the Download Streaming Logs button highlighted.":::
:::imagetype="content"source="./media/web-sites-dotnet-troubleshoot-visual-studio/tws-downloadedfile.png"alt-text="Screenshot of the Downloads folder in File Explorer with a downloaded file selected.":::
470
+
:::imagetype="content"source="./media/web-sites-dotnet-troubleshoot-visual-studio/tws-downloadedfile.png"alt-text="Screenshot of the Downloads folder in File Explorer with a downloaded file selected.":::
:::imagetype="content"source="./media/web-sites-dotnet-troubleshoot-visual-studio/tws-logfilefolders.png"alt-text="Screenshot of the .zip file folder structure after the file has been extracted.":::
474
+
:::imagetype="content"source="./media/web-sites-dotnet-troubleshoot-visual-studio/tws-logfilefolders.png"alt-text="Screenshot of the .zip file folder structure after the file has been extracted.":::
*Webserverlogsarein*.log*filesinthe*LogFiles\http\RawLogs*folder. Youcanuseatoolsuchas [LogParser](https://www.iis.net/downloads/community/2010/04/log-parser-22) to view and manipulate these files.
(The*deployments*folderisforfilescreatedbysourcecontrolpublishing; itdoesn't have anything related to Visual Studio publishing. The *Git* folder is for traces related to source control publishing and the log file streaming service.)
480
+
(The*deployments*folderisforfilescreatedbysourcecontrolpublishing; itdoesn't have anything related to Visual Studio publishing. The *Git* folder is for traces related to source control publishing and the log file streaming service.)
483
481
484
482
<!-- ## <aname="storagelogs"></a>Viewstoragelogs
485
483
ApplicationtracinglogscanalsobesenttoanAzurestorageaccount, andyoucanviewtheminVisualStudio. Todothatyou'll create a storage account, enable storage logs in the Azure portal, and view them in the **Logs** tab of the **Azure Web App** window.
@@ -571,45 +569,44 @@ You can view failed request tracing logs in a browser directly via FTP or locall
1. Inthe [Azureportal](https://portal.azure.com) **Settings** page for your app, click **Deployment credentials**, and then enter a new user name and password.
You've seen how Visual Studio makes it easy to view logs created by an App Service app. The following sections provide links to more resources on related topics:
615
612
@@ -658,7 +655,7 @@ There are no thorough and up-to-date introductions to ASP.NET tracing available
HowtousethecommandlinetodowhatthistutorialshowshowtodoinVisualStudio. [Glimpse](https://www.hanselman.com/blog/IfYoureNotUsingGlimpseWithASPNETForDebuggingAndProfilingYoureMissingOut.aspx) is a tool for debugging ASP.NET applications.
675
672
676
673
Forerrorlogging, analternativetowritingyourowntracingcodeistouseanopen-sourceloggingframeworksuchas [ELMAH](https://nuget.org/packages/elmah/). For more information, see [Scott Hanselman's blog posts about ELMAH](https://www.hanselman.com/blog/NuGetPackageOfTheWeek7ELMAHErrorLoggingModulesAndHandlersWithSQLServerCompact.aspx).
@@ -680,18 +677,17 @@ Also, you don't need to use ASP.NET or `System.Diagnostics` tracing to get strea
TheMicrosoftTechNetwebsiteincludesa [UsingFailedRequestTracing](https://www.iis.net/learn/troubleshoot/using-failed-request-tracing) section, which may be helpful for understanding how to use these logs. However, this documentation focuses mainly on configuring failed request tracing in IIS, which you can't do in Azure App Service.
0 commit comments