1

Been trying to resolve this issue for a few days now. I've done a ton of searching and tried several solutions - nothing has helped thus far.

I have a Visual Studio 2017 project. It has been running and debugging fine for years now. Suddenly, the other day I can no longer debug the application. Regardless of what browser I select (IE, Edge, Chrome, Firefox, etc) - the same error message is generated:

INET_E_RESOURCE_NOT_FOUND

Also, it takes forever for VS to open the browser to show this message. Additionally, if I start without debugging (ctrl + F5), the site works and loads as expected.

Things I've tried thus far:

  • Deleting everything from the IIS Express folder in My Documents
  • Re-installing IIS Express
  • Repairing IIS
  • Changing the port number in the project
  • Various IIS Express reset commands
  • Resetting IE settings
  • Clearing caches

There are probably a few others too, but at this point I feel I've exhausted all my options.

Anyone else encounter this and if so how did you fix it?

Aggromonster
  • 99
  • 2
  • 9
  • If you create a new simple web app, how about the result? I also suggest you repair your VS if all projects have the same issue. In addition, please also run your VS as the admin and update it to the latest version. Of course, to make sure that it was not the network issue, how about testing it using different network? We have to make sure that it was not related to the server's internal IP address like this case: https://serverfault.com/questions/845606/iis-randomly-returning-inet-e-resource-not-found – Fletcher Mar 15 '18 at 03:16
  • Created a blank MVC project and was able to open/debug in IIS Express. That definitely gives me some direction. My existing apps all have security (detect if a user is logged in and redirect them to authenticate). I'll search for information on how to clear/reset IIS for existing apps (though I believe I've already done that too). Any ideas as to what would cause this or how to resolve it for the existing apps? – Aggromonster Mar 27 '18 at 18:46
  • Does this answer your question? [Visual Studio Debug "This site can't be reached"](https://stackoverflow.com/questions/51931398/visual-studio-debug-this-site-cant-be-reached) – Eric Barr Nov 01 '20 at 15:04

2 Answers2

0

Thank you for the tip @Fletch Zhou.

Turns out the issue was a corruption in IIS (and likely its certificates). I was able to fix it by following the instructions found here:

Visual Studio 2017 Removing SSL/TLS Connections Problems with IIS Express

One quick note: for projects that already have SSL Enabled set to True, simply toggle the flag and Visual Studio will assign a new SSL port number.

Hope this helps someone else. I know I was frustrated having not made any changes and suddenly I cannot locally debug projects.

More Info: I attempted to debug an application I'd run several times after performing the steps listed in the linked article from PluralSight (tried that several times to ensure I wasn't missing anything). The symptom re-appeared- any browser would indicate the page didn't exist. I noticed that IIS Express was not running - didn't open at all; or at least not noticeably. I unchecked the "Enable Edit and Continue" option as discussed in this post: IIS Express Immediately Shutting Down Running Site after Stopping Web Application. Though the symptoms didn't match exactly, it was a simple-enough option to try. Sure enough, the site was operational once again. I'm running Visual Studio 2017 Version 15.6.4. Not sure if this is related to Visual Studio or IIS Express, but unchecking the "Enable Edit and Continue" seemed to resolve the latest hang up.

Aggromonster
  • 99
  • 2
  • 9
0

I had to set my start page to Default.aspx again. I don't know how it got unset or why it would result in that INET_E_RESOURCE_NOT_FOUND error.

ThatMatthew
  • 1,248
  • 9
  • 12