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
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -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
@@ -253,7 +263,7 @@ Required ports:
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
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -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/tutorial-import-publish-settings-iis.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -86,10 +86,10 @@ After the app deploys successfully, it should start automatically.
86
86
- If you can't connect to the host using the host name, try the IP address instead.
87
87
- Make sure the required ports are open on the remote server.
88
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.
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
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
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 more information.
92
+
- Check the Output window in Visual Studio for status information, and check your error messages.
0 commit comments