1

"unable to start debugging on the web server the remote server returned an error 404". this is the error that the debugger gives me the debugger works on IIS Express, but never on the local IIS

Is anyone aware of a solution to this? Am i overlooking something?

Thanks!

5
  • When hosting on IIS and receiving an error code, check its substatus first support.microsoft.com/en-us/help/943891/… Commented Mar 16, 2020 at 13:09
  • Error 404 is Server or Page not found. What is the URL? Commented Mar 16, 2020 at 13:10
  • Do you mean you have used remote debug to debug the local IIS or remote server? If you debug the application on IIS by using VS debug.Could you please post the project's property debug setting? Besides, I suggest you could firstly check your site which hosted on the IIS is working well(You could access the page directly in the browser). Commented Mar 17, 2020 at 1:52
  • @jdweng 404 not found url: localhost/ProjectName Commented Mar 21, 2020 at 13:36
  • Localhost definition varies from machine to machine. You can see what is being used from cmd.exe >ping localhost. In most cases the localhost is defined in the file C:\Windows\System32\Drivers\etc\hosts. The IP address 127.0.0.1 is the loopback address and some machine use the IP address of the host and others the loopback address. Then some machines have more than one IP addrtess. The specification for IP says every machine must have a loopback address. So I would try 127.0.0.1 instead of localhost. Commented Mar 21, 2020 at 14:01

2 Answers 2

1

I had the same problem and the solution was just do a check if the site where I was trying to debug was running propperly; In my case, the Default Web Site was stopped, and I had to restart it

Check if the IIS target site is running

Sign up to request clarification or add additional context in comments.

Comments

0

In our case the target site in IIS was based on .Net Framework and was configured badly due to a move to a new system.

Solution was to change the AppPool User of the site to use the correct .NET CLR Version:
No managed code -> v4.0

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.