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: docs/debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Remote debug ASP.NET on an IIS computer"
3
3
description: Learn how to set up and configure a Visual Studio ASP.NET MVC 4.5.2 application, deploy it to IIS, and attach the remote debugger from Visual Studio.
4
4
ms.custom: ['remotedebugging', 'seodec18']
5
-
ms.date: 05/06/2020
5
+
ms.date: 08/31/2021
6
6
ms.topic: "conceptual"
7
7
ms.assetid: 9cb339b5-3caf-4755-aad1-4a5da54b2a23
8
8
author: "mikejo5000"
@@ -244,7 +244,16 @@ For information on running the remote debugger as a service, see [Run the remote
244
244
245
245
The breakpoint should be hit in Visual Studio.
246
246
247
-
## <aname="bkmk_openports"></a> Troubleshooting: Open required ports on Windows Server
247
+
## Troubleshooting IIS deployment
248
+
249
+
- If you can't connect to the host using the host name, try the IP address instead.
250
+
- Make sure the required ports are open on the remote server.
251
+
- Verify that the version of ASP.NET used in your app is the same as the version you installed on the server. For your app, you can view and set the version in the **Properties** page. To set the app to a different version, that version must be installed.
252
+
- If the app tried to open, but you see a certificate warning, choose to trust the site. If you already closed the warning, you can edit the publishing profile, a *.pubxml file, in your project and add the following element (for test only): `<AllowUntrustedCertificate>true</AllowUntrustedCertificate>`
253
+
- If the app does not start from Visual Studio, start the app in IIS to test that it deployed correctly.
254
+
- Check the Output window in Visual Studio for status information, and check your error messages.
255
+
-
256
+
## <aname="bkmk_openports"></a> Open required ports on Windows Server
248
257
249
258
In most setups, required ports are opened by the installation of ASP.NET and the remote debugger. However, you may need to verify that ports are open.
Copy file name to clipboardExpand all lines: docs/debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md
+16-5Lines changed: 16 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Remote Debug ASP.NET Core on a Remote IIS Computer | Microsoft Docs"
3
3
description: Debug an ASP.NET Core application that has been deployed to a remote Internet Information Services (IIS) computer using the Visual Studio remote debugger.
4
4
ms.custom: "remotedebugging, SEO-VS-2020"
5
-
ms.date: 05/06/2020
5
+
ms.date: 08/27/2021
6
6
ms.topic: "conceptual"
7
7
ms.assetid: 573a3fc5-6901-41f1-bc87-557aa45d8858
8
8
author: "mikejo5000"
@@ -81,7 +81,7 @@ When you download the software, you may get requests to grant permission to load
81
81
82
82
1. Install the .NET Core Hosting Bundle on the hosting system. The bundle installs the .NET Core Runtime, .NET Core Library, and the ASP.NET Core Module. For more in-depth instructions, see [Publishing to IIS](/aspnet/core/publishing/iis?tabs=aspnetcore2x#iis-configuration).
83
83
84
-
For .NET Core 3, install the [.NET Core Hosting Bundle](https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer).
84
+
For the current .NET Core hosting bundle, install the [ASP.NET Core Hosting Bundle](https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer).
85
85
For .NET Core 2, install the [.NET Core Windows Server Hosting](https://aka.ms/dotnetcore-2-windowshosting).
86
86
87
87
> [!NOTE]
@@ -237,7 +237,17 @@ For information on running the remote debugger as a service, see [Run the remote
237
237
238
238
The breakpoint should be hit in Visual Studio.
239
239
240
-
## <aname="bkmk_openports"></a> Troubleshooting: Open required ports on Windows Server
240
+
## Troubleshooting IIS deployment
241
+
242
+
- If you can't connect to the host using the host name, try the IP address instead.
243
+
- Make sure the required ports are open on the remote server.
244
+
- For ASP.NET Core, you need to make sure that the Application pool field for the **DefaultAppPool** is set to **No Managed Code**.
245
+
- Verify that the version of ASP.NET used in your app is the same as the version you installed on the server. For your app, you can view and set the version in the **Properties** page. To set the app to a different version, that version must be installed.
246
+
- If the app tried to open, but you see a certificate warning, choose to trust the site. If you already closed the warning, you can edit the publishing profile, a *.pubxml file, in your project and add the following element (for test only): `<AllowUntrustedCertificate>true</AllowUntrustedCertificate>`
247
+
- If the app does not start from Visual Studio, start the app in IIS to test that it deployed correctly.
248
+
- Check the Output window in Visual Studio for status information, and check your error messages.
249
+
250
+
## <aname="bkmk_openports"></a> Open required ports on Windows Server
241
251
242
252
In most setups, required ports are opened by the installation of ASP.NET and the remote debugger. However, you may need to verify that ports are open.
243
253
@@ -246,14 +256,14 @@ In most setups, required ports are opened by the installation of ASP.NET and the
246
256
247
257
Required ports:
248
258
249
-
* 80 - Required for IIS
259
+
* 80 - Required for IIS (HTTP)
250
260
::: moniker range=">=vs-2019"
251
261
* 4024 - Required for remote debugging from Visual Studio 2019 (see [Remote Debugger Port Assignments](../debugger/remote-debugger-port-assignments.md) for more information).
252
262
::: moniker-end
253
263
::: moniker range="vs-2017"
254
264
* 4022 - Required for remote debugging from Visual Studio 2017 (see [Remote Debugger Port Assignments](../debugger/remote-debugger-port-assignments.md) for more information).
255
265
::: moniker-end
256
-
* UDP 3702 - (Optional) Discovery port enables you to the **Find** button when attaching to the remote debugger in Visual Studio.
266
+
* UDP 3702 - (Optional) Discovery port enables you to use the **Find** button when attaching to the remote debugger in Visual Studio.
257
267
258
268
1. To open a port on Windows Server, open the **Start** menu, search for **Windows Firewall with Advanced Security**.
259
269
@@ -266,6 +276,7 @@ Required ports:
266
276
5. Select one or more network types to enable for the port and click **Next**.
267
277
268
278
The type you select must include the network to which the remote computer is connected.
279
+
269
280
6. Add the name (for example, **IIS**, **Web Deploy**, or **msvsmon**) for the Inbound Rule and click **Finish**.
270
281
271
282
You should see your new rule in the Inbound Rules or Outbound Rules list.
Copy file name to clipboardExpand all lines: docs/debugger/remote-debugging-azure.md
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Remote Debug ASP.NET Core on IIS and Azure | Microsoft Docs"
3
3
description: Learn how to set up and configure a Visual Studio ASP.NET Core app, deploy it to IIS using Azure, and attach the remote debugger from Visual Studio.
4
4
ms.custom: "remotedebugging"
5
-
ms.date: 05/06/2020
5
+
ms.date: 08/27/2021
6
6
ms.topic: "conceptual"
7
7
ms.assetid: a6c04b53-d1b9-4552-a8fd-3ed6f4902ce6
8
8
author: "mikejo5000"
@@ -125,9 +125,9 @@ This article includes steps on setting up a basic configuration of IIS on Window
125
125
126
126
* If you want help to make sure that your app is set up, deployed, and running correctly in IIS so that you can debug, follow all the steps in this topic.
127
127
128
-
* Before you begin, follow all the steps described in [Install and run IIS](/azure/virtual-machines/windows/quick-create-portal).
128
+
* Before you begin, follow all the steps described in [Create a Windows Virtual Machine](/azure/virtual-machines/windows/quick-create-portal), which includes steps to install the IIS web server.
129
129
130
-
*When you open port 80 in the Network security group, also open the [correct port](#bkmk_openports) for the remote debugger (4024 or 4022). That way, you won't have to open it later. If you're using Web Deploy, also open port 8172.
130
+
*Make sure you open port 80 in the Azure [Network security group](/azure/virtual-machines/windows/nsg-quickstart-portal). When you verify that port 80 is open, also open the [correct port](#bkmk_openports) for the remote debugger (4024 or 4022). That way, you won't have to open it later. If you're using Web Deploy, also open port 8172.
131
131
132
132
### Update browser security settings on Windows Server
133
133
@@ -144,7 +144,7 @@ When you download the software, you may get requests to grant permission to load
144
144
145
145
1. Install the .NET Core Hosting Bundle on the hosting system. The bundle installs the .NET Core Runtime, .NET Core Library, and the ASP.NET Core Module. For more in-depth instructions, see [Publishing to IIS](/aspnet/core/publishing/iis?tabs=aspnetcore2x#iis-configuration).
146
146
147
-
For .NET Core 3, install the [.NET Core Hosting Bundle](https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer).
147
+
For the current .NET Core hosting bundle, install the [ASP.NET Core Hosting Bundle](https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer).
148
148
For .NET Core 2, install the [.NET Core Windows Server Hosting](https://aka.ms/dotnetcore-2-windowshosting).
149
149
150
150
> [!NOTE]
@@ -287,7 +287,17 @@ Download the version of the remote tools that matches your version of Visual Stu
287
287
288
288
The breakpoint should be hit in Visual Studio.
289
289
290
-
### <aname="bkmk_openports"></a> Troubleshooting: Open required ports on Windows Server
290
+
## Troubleshooting IIS deployment
291
+
292
+
- If you can't connect to the host using the host name, try the IP address instead.
293
+
- Make sure the required ports are open on the remote server.
294
+
- For ASP.NET Core, you need to make sure that the Application pool field for the **DefaultAppPool** is set to **No Managed Code**.
295
+
- Verify that the version of ASP.NET used in your app is the same as the version you installed on the server. For your app, you can view and set the version in the **Properties** page. To set the app to a different version, that version must be installed.
296
+
- If the app tried to open, but you see a certificate warning, choose to trust the site. If you already closed the warning, you can edit the publishing profile, a *.pubxml file, in your project and add the following element (for test only): `<AllowUntrustedCertificate>true</AllowUntrustedCertificate>`
297
+
- If the app does not start from Visual Studio, start the app in IIS to test that it deployed correctly.
298
+
- Check the Output window in Visual Studio for status information, and check your error messages.
299
+
300
+
### <aname="bkmk_openports"></a> Open required ports on Windows Server
291
301
292
302
In most setups, required ports are opened by the installation of ASP.NET and the remote debugger. However, if you are troubleshooting deployment issues and the app is hosted behind a firewall, you may need to verify that the correct ports are open.
Copy file name to clipboardExpand all lines: docs/deployment/includes/create-publish-settings-iis.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,9 @@
33
33
* The *msdeploy.axd* file referenced in the `publishUrl` attribute is a dynamically generated HTTP handler file for Web Deploy. (For testing purposes, `http://myhostname:8172` generally works as well.)
34
34
* The `publishUrl` port is set to port 8172, which is the default for Web Deploy.
35
35
* The `destinationAppUrl` port is set to port 80, which is the default for IIS.
36
-
* Ifyou are unable to connect to the remote host in Visual Studio using the host name (in later steps), test the IP address in place of the host name.
36
+
* If, in later steps, you are unable to connect to the remote host from Visual Studio using the host name, test the server's IP address in place of the host name.
37
37
38
38
> [!NOTE]
39
-
> If you are publishing to IIS running on an Azure VM, you must open the Web Deploy and IIS ports in the Network Security group. For detailed information, see [Install and run IIS](/azure/virtual-machines/windows/quick-create-portal#install-web-server).
39
+
> If you are publishing to IIS running on an Azure VM, you must open an inbound port for Web Deploy and IIS in the Network Security group. For detailed information, see [Open ports to a virtual machine](/azure/virtual-machines/windows/nsg-quickstart-portal).
40
40
41
41
5. Copy this file to the computer where you are running Visual Studio.
After the app deploys successfully, it should start automatically. If it does not start from Visual Studio, start the app in IIS. For ASP.NET Core, you need to make sure that the Application pool field for the **DefaultAppPool** is set to **No Managed Code**.
82
+
After the app deploys successfully, it should start automatically.
83
+
84
+
## Troubleshooting
85
+
86
+
- If you can't connect to the host using the host name, try the IP address instead.
87
+
- Make sure the required ports are open on the remote server.
88
+
- For ASP.NET Core, you need to make sure that the Application pool field for the **DefaultAppPool** is set to **No Managed Code**.
89
+
- Verify that the version of ASP.NET used in your app is the same as the version you installed on the server. For your app, you can view and set the version in the **Properties** page. To set the app to a different version, that version must be installed.
90
+
- If the app tried to open, but you see a certificate warning, choose to trust the site. If you already closed the warning, you can edit the *.pubxml file in your project and add the following element (for test only): `<AllowUntrustedCertificate>true</AllowUntrustedCertificate>`
91
+
- If the app does not start from Visual Studio, start the app in IIS to test that it deployed correctly.
92
+
- Check the Output window in Visual Studio for status information, and check your error messages.
0 commit comments