3

I am trying to debug a web application through IIS that has a virtual directory other than localhost. It compiles fine but gets the above message anytime that I try to start debugging. I have compilation debug="true".

2
  • Which version of Visual Studio are you using? Commented Nov 3, 2008 at 16:37
  • Also, which version of Windows and x86 or x64? Commented Nov 3, 2008 at 17:35

2 Answers 2

3

Right click your 'web' project and select 'property pages'. Then change 'Start Options' to 'Don't open a page. Wait for a request from an external application.' and for server, select 'Use custom server' with Base URL: 'http://localhost/your_virtual_dir/'

Then with a web browser opened pointing to the IIS location (and virtual dir) you setup, the two should work in tandem with each other.

Hope that helped.

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

1 Comment

+1! Just been following every other MS initiated instruction on the web, then saw this. Turns out one of our devs changed localhost to their own machine name and checked it in....
1

Error: Unable to Start Debugging on the Web Server

Check the points in the MSDN article above. IME, its normally one of these things:

  1. Has the application directory been created as an application in IIS? On the Directory tab, under Application Settings, next to the application name you will see the create button. Click this!

  2. On the ASP.NET tab in IIS, has the correct version of the framework been selected?

  3. Re-register ASP.NET: From a command prompt window, run the following command: systemroot\Microsoft.NET\Framework\ versionNumber \aspnet_regiis -i

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.