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/error-the-web-server-could-not-find-the-requested-resource.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,12 @@ ms.workload:
19
19
---
20
20
# Error: The Web Server Could Not Find the Requested Resource
21
21
Due to security considerations, IIS has returned a generic error.
22
-
23
-
One possible cause is the security configuration of the server. IIS 6.0 and earlier versions used an add-on program, known as URLScan, to filter out suspicious and malformed requests. IIS 7.0 has built-in Request Filtering for the same purpose. In both cases, overly restrictive request filtering can prevent Visual Studio from debugging the server.
24
-
25
-
There are numerous possible causes of this error. A few of the most common causes include a problem with the IIS installation or configuration, the web site configuration, or permissions in the file system. You can try accessing the resource with a browser. Depending on how IIS is configured you might have to use a local browser on the server or inspect the IIS error log to get a detailed error message.
22
+
23
+
One possible cause is the security configuration of the server. IIS 6.0 and earlier versions used an add-on program, known as URLScan, to filter out suspicious and malformed requests. IIS 7.0 has built-in Request Filtering for the same purpose. In both cases, overly restrictive request filtering can prevent Visual Studio from debugging the server.
24
+
25
+
Another possible cause of this error is that the W3SVC service for IIS is not started. Check that this service is started (grayed out) in the Services window (*services.msc*).
26
+
27
+
There are numerous additional possible causes of this error. A few of the most common causes include a problem with the IIS installation or configuration, the web site configuration, or permissions in the file system. You can try accessing the resource with a browser. Depending on how IIS is configured, you might have to use a local browser on the server or inspect the IIS error log to get a detailed error message.
26
28
27
29
For more information on troubleshooting IIS, see [IIS Management and Administration](/iis/manage/provisioning-and-managing-iis/iis-management-and-administration).
Copy file name to clipboardExpand all lines: docs/debugger/getting-started-with-the-debugger.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ This article introduces the features of the Visual Studio debugger in a step-by-
25
25
|---------|---------|
26
26
||[Watch a video](https://mva.microsoft.com/en-US/training-courses-embed/getting-started-with-visual-studio-2017-17798/Debugger-Feature-tour-of-Visual-studio-2017-sqwiwLD6D_1111787171) on debugging that shows similar steps. |
27
27
28
-
Although the demo app is C# and C++, the features are applicable to Visual Basic, JavaScript, and other languages supported by Visual Studio (except where noted). The screenshots are in C#. To switch between the C# and C++ sample code in this article, use the language filter in the upper right of this page.
28
+
Although the demo app is C# and C++, the features are applicable to Visual Basic, JavaScript, and other languages supported by Visual Studio (except where noted). The screenshots are in C#.
29
29
30
30
In this tutorial, you will:
31
31
@@ -55,6 +55,9 @@ In this tutorial, you will:
55
55
56
56
Visual Studio creates the project.
57
57
58
+
> [!NOTE]
59
+
> To switch between the C# and C++ sample code in this article, use the language filter in the upper right of this page.
60
+
58
61
4. In *Program.cs* (C#) or *get-started-debugging.cpp* (C++), replace the following code
Copy file name to clipboardExpand all lines: docs/debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -160,12 +160,7 @@ You can also publish and deploy the app using the file system or other tools.
160
160
161
161
In this tutorial, we are using Visual Studio 2017.
162
162
163
-
If you have trouble opening the page with the remote debugger download, see [Unblock the file download](../debugger/remote-debugging.md#unblock_msvsmon) for help.
> In some scenarios, it can be most efficient to run the remote debugger from a file share. For more information, see [Run the remote debugger from a file share](../debugger/remote-debugging.md#fileshare_msvsmon).
169
164
170
165
## <aname="BKMK_setup"></a> Set up the remote debugger on Windows Server
Copy file name to clipboardExpand all lines: docs/debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -141,12 +141,7 @@ You can also publish and deploy the app using the file system or other tools.
141
141
142
142
In this tutorial, we are using Visual Studio 2017.
143
143
144
-
If you have trouble opening the page with the remote debugger download, see [Unblock the file download](../debugger/remote-debugging.md#unblock_msvsmon) for help.
> In some scenarios, it can be most efficient to run the remote debugger from a file share. For more information, see [Run the remote debugger from a file share](../debugger/remote-debugging.md#fileshare_msvsmon).
150
145
151
146
## <aname="BKMK_setup"></a> Set up the remote debugger on Windows Server
Copy file name to clipboardExpand all lines: docs/debugger/remote-debugging-azure.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -179,8 +179,6 @@ If you're not using Web Deploy, you must publish and deploy the app using the fi
179
179
180
180
In this tutorial, we are using Visual Studio 2017.
181
181
182
-
If you have trouble opening the page with the remote debugger download, see [Unblock the file download](../debugger/remote-debugging.md#unblock_msvsmon) for help.
## <aname="unblock_msvsmon"></a> Unblock the download of the remote tools on Windows Server
46
-
47
-
The default security settings in Internet Explorer on Windows Server can make it time-consuming to download components such as the remote tools.
48
-
49
-
* Enhanced Security Configuration is enabled on Internet Explorer, which prevents you from opening websites and accessing web resources unless the domain containing the resource is explicitly allowed (that is, trusted). Although you can disable this setting, we do not recommend it because it can presents a security risk.
50
-
51
-
* On Windows Server 2016, a default setting in **Internet Options** > **Security** > **Internet** > **Custom Level** > **Downloads** also disables file downloads. If you choose to download the remote tools directly on Windows Server, you must enable file download.
52
-
53
-
To download the tools on Windows Server, we recommend one of the following:
54
-
55
-
* Download the remote tools on a different computer such as the one running Visual Studio, and then copy the *.exe* file to Windows Server.
56
-
57
-
* Run the remote debugger [from a file share](#fileshare_msvsmon) on your Visual Studio machine.
58
-
59
-
* Download the remote tools directly on Windows Server and accept the prompts to add trusted sites. Modern websites often include many third-party resources, so this can result in a lot of prompts. In addition, any redirected links may need to be added manually. You can choose to add some of the trusted sites before beginning the download. Go to **Internet Options > Security > Trusted Sites > Sites** and add the following sites.
60
-
61
-
* visualstudio.microsoft.com
62
-
* download.visualstudio.microsoft.com
63
-
* about:blank
64
-
65
-
For older versions of the debugger on my.visualstudio.com, add these additional sites to make sure that login is successful:
66
-
67
-
* microsoft.com
68
-
* go.microsoft.com
69
-
* download.microsoft.com
70
-
* my.visualstudio.com
71
-
* login.microsoftonline.com
72
-
* login.live.com
73
-
* secure.aadcdn.microsoftonline-p.com
74
-
* msft.sts.microsoft.com
75
-
* auth.gfx.ms
76
-
* app.vssps.visualstudio.com
77
-
* vlscppe.microsoft.com
78
-
* query.prod.cms.rt.microsoft.com
79
-
80
-
If you choose to add these domains while downloading the remote tools, then choose **Add** when prompted.
When you download the software, you get some additional requests to grant permission to load various web site scripts and resources. On my.visualstudio.com, we recommend that you add the additional domains to make sure that login is successful.
0 commit comments