Thursday, August 02, 2007
« One Thing Ends - Leaving Clarizen | Main | Setting up a Custom ASP.NET HTTP Handler... »

I couldn't find this all in one place, so, here's how you enable developing and debugging an asp.net app under IIS7 on Vista:

1 Install windows features in "turn windows features on or off". You need these things (which are not installed by default):
Under "web management tools":
a. IIS metabase and IIS 6 configuration compatibility
b. IIS management console
Under "Application Development Features":
a. ASP.NET
Under "Common Http Features" - check everything.



2 Open the web application project in VS, go to proprties, under "Web":
 2.1 Select "Use IIS Web Server".
 2.2 Click "Create Virtual Dir" (this actualy creates an application, not virtual directory on IIS 7).
3 Open IIS manager:
 3.1 Make sure the default web site is started.
 3.2 Select your application:
  3.2.1 Click "basic settings...", choose under "Application Pool" the option "classic .Net AppPool"
  3.2.2 Under "authentication" enable "anonymous authentication"
  3.2.3 If you use windows/forms/passport authentication in your asp.net app. - you need additional configuration.
4 In VS set your startup page (right click on desired page in solution explorer)
5. Run

Note: debugging still shouldn't work at this point, only "start without debug".
Note 2: many places say that you must run VS as administrator (not the default way under Vista), but for me it seems to work when running not as admin as well.

To enable debugging:
1. Install this hotfix. Download here.
Now debugging should work also.


Related on pashabitz.com: SSL in ASP.NET - part I | SSL in ASP.NET - part II.

Want to join me as partner in a cool new startup?
Get in touch: pasha at cohai dot co

Bookmark and Share Thursday, August 02, 2007 4:43:48 PM (Jerusalem Daylight Time, UTC+03:00)  #    Comments [7]  
Sunday, April 17, 2011 2:31:55 AM (Jerusalem Daylight Time, UTC+03:00)
Soudns great to me BWTHDIK
Monday, April 18, 2011 1:35:04 AM (Jerusalem Daylight Time, UTC+03:00)
zH0oO7 , [url=http://tikrciqqwgvm.com/]tikrciqqwgvm[/url], [link=http://bnsulcidyvif.com/]bnsulcidyvif[/link], http://upcufcwatlty.com/
Saturday, April 23, 2011 8:20:23 PM (Jerusalem Daylight Time, UTC+03:00)
90idn1 <a href="http://llrelldzxobh.com/">llrelldzxobh</a>
Friday, November 16, 2012 2:12:36 PM (Jerusalem Standard Time, UTC+02:00)
hi i am rafat i am setup a IIS to my computer(windows 7) and then i am doing the above 2 step . then i am going to IE and write on title , but it is not open a page only it is tell me you have an error as fololw :76: ASP.NET to identify an incoming user.السطر 77: >السطر 78:السطر 79: <! السطر 80: The section enables configuration note :i am transfer my website to wwwrootplease help me to solve this problem ,send the solution to my e_mail:mount.mount8@gmail.com thanks administrator
Friday, November 16, 2012 10:03:24 PM (Jerusalem Standard Time, UTC+02:00)
xXQFqM <a href="http://dmzkkwnahmqw.com/">dmzkkwnahmqw</a>
Sunday, November 18, 2012 1:53:19 PM (Jerusalem Standard Time, UTC+02:00)
MrvAOq <a href="http://ficuraaozasr.com/">ficuraaozasr</a>
Sunday, November 18, 2012 11:12:52 PM (Jerusalem Standard Time, UTC+02:00)
x0JRlI , [url=http://fukprgtatutl.com/]fukprgtatutl[/url], [link=http://fhwvtppzzxgx.com/]fhwvtppzzxgx[/link], http://bojxeznsjsmt.com/
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):