Asp.Net: debug website in iis

Can I debug an Asp.Net site running on iis? I can debug an Asp.Net web application project, but not a website, and would like to know if this is by design or if I am missing something.

+6
debugging iis
source share
4 answers

There was the same problem. The key is not to open the project using the visual studio project file.

  • In IIS, on your default website, you need to create an application and specify it in the folder containing the files.
  • In Visual Studio, go to File> Open> Website (Shift + Alt + O).
  • Select the newly created application.
  • You will notice that the Solution Explorer uses a URL instead of a project name. (Http: // local / mysite /)
  • Click the debug arrow, as usual.
+10
source share

you can connect asp_wp to your Visual Studio debugger to debug it.

+3
source share

This should work:

  • Compile the project in debug mode.
  • Set debug = "true" in the web.config file.
  • Attach to the IIS workflow (which v from IIS are you using?) (Ctrl-Alt-P in VS). There can be many processes. MAKE SURE YOU TAKE THE RIGHT ONE .
+2
source share

It works great for me. You just copy the files to the IIS folder, install IIS and go. (If on the same machine). Make sure that the project properties indicate "User Web Server" and " http: // localhost " (or something else).

In Vista, you need to run Visual Studio as an administrator.

If you use your IIS on another computer, you need to install the remote debugger, which is located on your Visual Studio disks, and connect to the hat using Debug | Attach To Process in Visual Studio.

0
source share

All Articles