question

rms2256 avatar image
0 Votes"
rms2256 asked rms2256 answered

Error when using browser debugger in Visual Studio 2019 Professional

Hello, and thanks in advance to anyone who can help me with this problem.

I am programming in JavaScript, using Visual Studio 2019 Professional, and am encountering an error when debugging using the browser option (Microsoft Edge). The error page looks as follows:

99846-image.png




It returns a 'localhost refused to connect' (ERR_CONNECTION_REFUSED) statement. I have already searched for hours for a solution to this problem, allowed Visual Studio through my firewall, and done much testing to try and solve the problem.

Any more help with this would be greatly appreciated.


Thanks,
-rms2256

vs-general
image.png (159.7 KiB)
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


What kind of application (Visual Studio project ) are you debugging and how to reproduce the problem?

0 Votes 0 ·

It is an application project in JavaScript.

0 Votes 0 ·

Hello @rms2256 , welcome to Microsoft Q&A forum. I see that you use JavaScript and it is an application project, but like @Viorel-1 said, you need to let us know the specific type of this application in Visual Studio(ASP .NET Web, Angular, React…). From the screenshot you shared, we can only see the error message and the browser didn’t show the page but it is hard to know if your project is based on some framework, or some configurations which are related to the web server need to be set but haven’t been set.

0 Votes 0 ·
Show more comments

I am getting this same issue on both IE and Chrome (we do not have Edge enabled on our network). It is occurring on all of my projects, MVC and Webforms. It started on approx. 8:00 AM of Aug 6, 2021 (US Central Time). The nearest change of any sort was an expiration of my log-in to our local Azure lake, which I don't use for any of my apps. I don't think I changed any Options settings, but I may have.

It appears that both Chrome and IE are redirecting IISExpress to an SSL address (https). I actually do not remember if this was always occurring or something that just started, as it was just working fine until 8/6.

0 Votes 0 ·

1 Answer

rms2256 avatar image
0 Votes"
rms2256 answered

I have decided to not use Visual Studio 2019 as I was unable to solve the issue. I now am using replit.com (an online coding environment).

After further consideration, I think the error may be due to a failure in communication between the Visual Studio program and the browser; perhaps port communication.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.