74

I have sharepoint 2013 application deployed on IIS. When I want to start debugging, I face this error:

"Unable to start debugging on the web server. IIS does not list a web site that matches the launched URL".

I found a few solutions for this issue, but none work for me. The solutions I found:

  1. VS should be running as Administrator. I did that.
  2. Windows Authentication should be enable on IIS. I did that.
  3. 'IIS Metabase and IIS 6 configuration compatibility' should be turn on in the Windows features. I did that.

It still doesn't work. Any other solutions? Please help me.

Jason Evans
  • 28,906
  • 14
  • 90
  • 154
Oleg Kyrylchuk
  • 1,199
  • 1
  • 11
  • 21

3 Answers3

140

Try to start Visual Studio under administration account by choosing Run as administrator.

Babak
  • 3,716
  • 6
  • 39
  • 56
  • 2
    The OP has already tried that `1. VS should be running as Administrator. I did that.` – Jason Evans Apr 21 '16 at 09:46
  • 4
    Answer was helpful for me before, and now again with VS17 :) – radbyx Mar 08 '17 at 07:33
  • 1
    I don't really consider this a truly helpful answer, because there are better solutions. Still looking for it. Yes this does fix the problem for me, but on old work machine I didn't have to do this. So surely there is a more permanent, less "remember to always run VS in administrator" solution. – shmup May 10 '17 at 15:02
  • 1
    @Jared Right click on your VS shortcut -> properties -> shortcut -> Advanced -> run as administrator – Mario Lopez Jan 11 '18 at 00:54
  • Double check VS is running as admin - I had mine to always run as admin and it somehow disabled this option. Re-enabled – niico Apr 04 '18 at 14:05
  • Follow @Jared's instructions and practice using your shortcut to launch VS instead of launching the .sln from file explorer. – Gregory Bologna Dec 17 '20 at 15:36
4

If nothing works as above said solutions , try this out

  1. Start >> Control Panel >> Click Programs

  2. Click Turn Windows features on or off.

  3. In the User Account Control dialog box, click Continue

  4. Expand Internet Information Services, expand Web Management Tools, and then expand IIS 6 Management Compatibility

  5. Click to select the IIS Metabase and IIS 6 configuration compatibility check box, and then click OK.

Joe
  • 509
  • 4
  • 11
2

I had this same problem.

I was trying to move my solution to a different DEV server of mine, that I don't use that often.

1.) I had not installed some of the items from the Application Development (duh, right) sections of the IIS Role Services. I ended up checking everything, but I think you only need ASP.NET

2.) I installed the asp.net and web tools 2013 available by clicking here

Paul Story
  • 582
  • 4
  • 10