Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.Net: Debug website in iis

Is it possible to debug an Asp.Net website running on iis? I am able to debug an Asp.Net web application project, but not a web site, and wanted to know if this is by design or am I missing something.

like image 511
Yaron Naveh Avatar asked Aug 14 '09 09:08

Yaron Naveh


2 Answers

Had this same problem. The key is to not open the project using the visual studio project file.

  1. In IIS, under your Default Web Site, you need to have already created an application, and pointed it at the folder containing the files.
  2. In Visual Studio, go to File > Open > Web Site (Shift+Alt+O).
  3. Select the newly-created application.
  4. You'll notice the solution explorer now uses the URL in place of the project name. (http://localhost/mysite/)
  5. Click the debug arrow like normal.
like image 163
David Avatar answered Oct 13 '22 23:10

David


you can attached the asp_wp into your Visual Studio debuggar to debug it.

like image 37
Bhaskar Avatar answered Oct 13 '22 23:10

Bhaskar