work.dkeith
work.dkeith

Reputation: 23

The debugger cannot connect to the remote computer. The debugger was unable to resolve the specified computer name

I am trying to run a project in a solution in debug mode, but I get an error.

The debugger cannot connect to the remote computer. The debugger was unable to resolve the specified computer name.

I am able to run localhost and I created a new project and the debuggers runs. I get the error when I try to run a project that is a website in a solution.

Upvotes: 2

Views: 2219

Answers (2)

tanuk
tanuk

Reputation: 528

I had this message in VS because I forgot that the last time I've used that project I was attaching to a remote machine. So in the properties of the project I've set the flag "Use remote machine" with the name of the machine. And VS was telling me that was not able to resolve the specified computer name, but I didn't beleive it..

enter image description here

If that is your case, removing the flag should work.

Upvotes: 0

Dylan Wright
Dylan Wright

Reputation: 1202

If your localhost works maybe modifying your hosts file will resolve the issue. Not sure why the URL needs to be configured to something specific. However, in your hosts file you can configure your URL to say whatever you'd like.

hosts file is located, C:/Windows/System32/drivers/etc/hosts on Windows10. You may have to search if different OS. I hope this helps.

In your hosts file change where it says: 127.0.0.1 localhost to 127.0.0.1 test.local

Upvotes: 3

Related Questions