user2728841
user2728841

Reputation: 1427

Visual Studio 2017 release 15.7.3 does not launch application successfully

I have a fairly standard web application with a single HELLO WORLD aspx test page, so for the purposes of this question, that is the start page.

When I run the app from visual studio by pressing f5 I get "Cannot reach this page" or whatever the 404 equivalent is in each browser. (chrome: "this site can't be reached"). In firefox, the page runs successfully first time, firefox doesn't have any debugger attachment add ins, so the problem seems to relate to debugger attachment in IIS express

If I wait a few seconds, and then F5 the browser (IE or chrome), the expected page loads successfully, so it seems to be a delay in IIS starting when a debugger is attached.

I'm wondering if anyone else has hit this and whether they have a solution. We have a quite a few tweaks in web.config to meet high security needs but otherwise I can't think why it would go wrong.

Workaround is to wait a few seconds and press f5, but thats kind of annoying when you're trying to get on with things.

Upvotes: 0

Views: 55

Answers (1)

Darren Harrison
Darren Harrison

Reputation: 104

As described by O.H., and verified by user2728841, the solution for me was:

Tools > Options > Debugging and changing "Enable JavaScript debugging for ASP.NET".

However, opposite to O.H. and like user2728841, my option was deselected, and selecting it solved the problem.

Upvotes: 1

Related Questions