-1

enter image description here

I can't debug my application using a local IIS server. However, when I change to IIS Express I can debug my application.

I'm running Visual Studio as an administrator.

gunr2171
  • 16,104
  • 25
  • 61
  • 88
  • 1
    What have you tried? Are you getting a specific error message? Where did you get your "hint"? – Robert Columbia Jul 13 '16 at 14:19
  • please be more specific and provide sample code –  Jul 13 '16 at 14:20
  • I attached an image of the error – Ahmed Sobhy Jul 13 '16 at 14:22
  • Are you running VS as an Administrator? – David Tansey Jul 13 '16 at 14:22
  • Yes running it as Administation – Ahmed Sobhy Jul 13 '16 at 14:23
  • Questions seeking debugging help (**"why isn't this code working?"**) must include *the desired behavior*, *a specific problem or error* and *the shortest code necessary* to reproduce it **in the question itself**. Questions without **a clear problem statement** are not useful to other readers. See: [How to create a Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve). – Gustavo Morales Jul 13 '16 at 14:30
  • Post a part of you web.config file where you are setting up end points to IIS> – Adam Jul 13 '16 at 14:42
  • Did you make sure you can use IIS outside of the context of debugging? IIS has to be installed and running for this feature to work. IIS is not enabled on windows by default for home users, and is not even available for some windows versions. – Nikki9696 Jul 13 '16 at 14:44
  • Start with this link : https://msdn.microsoft.com/en-us/library/dwesw3ee.aspx make sure your IIS is installed and configured. You should be able to access it with localhost and serve a static file. Once you can do that, try serving a ASP.NET file. If it fails, make sure .NET and ASP.NET is installed. – Roman Mik Jul 13 '16 at 14:47
  • sorry i don't know where is the problem but all i can see that the application can debug using iis express but when i create a virtual directory and trying to debug it, it doesn't debug i was debug it before using local iis and Vs was running as administration, but now i can't do it – Ahmed Sobhy Jul 13 '16 at 14:50
  • Are there any errors logged in the event viewer or in any log files? – Jeff Siver Jul 14 '16 at 04:39

2 Answers2

0

use debug/attach to process and attach your vs to all instances of w3wp.exe

Dexion
  • 1,101
  • 8
  • 14
0

First thing you have to do is:

register asp.net first to iis server like this;

  1. run cmd as administrator. enter image description here

  2. in IIS >>> application pools >>> .net framework.. check your project framework here if the same of your project framework setting.

Vijunav Vastivch
  • 4,153
  • 1
  • 16
  • 30