Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 - Unable to start program http://localhost

I have a problem with my IDE. Simply in asp.net web application project when I try to start debugging with Chrome, the problem shows up.

The problem doesn't occur selecting Edge browser for debugging by the way.

https://i.stack.imgur.com/prHhc.png

Also I have no problem when I unclick "Enable javascript debugging for ASP.NET (Chrome and IE)".

like image 642
berkan Avatar asked Apr 27 '17 14:04

berkan


People also ask

How to debug localhost Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5. The debugger pauses at the breakpoints.

Could not start debugging on the web server?

Open your project properties and make sure that the project is configured to connect to the correct Web server and launch URL. (Open Properties > Web > Servers or Properties > Debug depending on your project type.) If that does not work or you are debugging remotely, follow steps in Check your IIS Configuration.

Why I cannot debug in Visual Studio?

Go to Tools->Options->Debugging->General and see if the option "Use Managed compatibility mode" is selected. If it is, uncheck it and try again.


2 Answers

For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017.

Go to: Tools > Options > Debugging > General and turn off the setting for:

Enable JavaScript Debugging for ASP.NET (Chrome and IE)

like image 197
Muhammed Afsal Avatar answered Oct 02 '22 13:10

Muhammed Afsal


The problem solved by following setting VS-2017 -> Tools -> Options -> Debugging -> General: Uncheck/Disable the "Enable JavaScript Debugging for ASP.NET (Chrome and IE)" option

I tried the other options provided above such as Restart VS-2017, closing browser opened earlier but that didn't solved this problem. I have installed VS-2017 Community Edition one week back only.

like image 40
Kartik Rajendran Avatar answered Oct 02 '22 14:10

Kartik Rajendran