How to Install IIS on Windows 7

Today I am going to show How to Install IIS on Windows 7 IIS 7.0 is included
with Windows 7. However, when you first install Windows 7, by default IIS 7.0 is
not installed or enabled. This topic describes how to install IIS and configure
it so that in Visual Studio you can create local IIS ASP.NET Web sites. This enables
you to use a local copy of IIS to run and debug the Web site instead of using the
ASP.NET Development Server. When you create a local IIS Web site, the pages and
folders for the site are stored in a folder under the default IIS folder for Web
sites. This is located at LocalDrive:\Inetpub\wwwroot. Visual Studio creates the
appropriate IIS configuration so that the Web site is recognized by IIS as an application.
You can also create a virtual directory. In that case, the files for the Web site
can be in any folder on the Web server computer. Now start installing IIS on your
Windows7. Steps are –

  1. In , open Control Panel and then click Programs.
    IIS install Step 1
  2. Under Programs and Features, click Turn Windows features on or off.
    Turn Windows Features On or Off

    How to install IIS on Windows 7

    If Control Panel is set to display in Classic view, click Programs and Features,
    and in then in the left pane, click Turn Windows features on or off.
  3. The Windows Features dialog box is displayed.Expand Internet Information Services.

    Expand Internet Information Services

    Step 3

  4. Expand Web Management Tools, expand IIS 6 Management Compatibility, and then select the IIS 6 Metabase and IIS 6 configuration compatibility check box.

    Step 4

  5. Expand World Wide Web Services, expand Application Development Features, and then select the ASP.NET check box.
    The options that are required for Web application development will automatically
    be select
  6. Expand World Wide Web Services, expand Security, and then select the Windows Authentication check box. To enable Visual Studio to debug applications, you must configure IIS 7.0 with the Windows Authentication module. By default, the module is not configured as part of IIS.

    Step 6

  7. Expand the World Wide Services, expand the Common HTTP Features then check the Static Content.

    Step 7

  8. Click OK to start the IIS and ASP.NET installation process.
  9. When the configuration process finishes, close Control Panel.
  10. After clicking OK button it will take some time to install IIS and others features on your computer. After doing this you need to be sure that every thing is OK! for this open your browser and navigate to http://localhost. If you can see the following page then every thing is OK.


About Razib Chandra Deb

I completed my BSc in CSE from CSE Department of KUET. Currently I am working as a Software Engineer in Samsung R&D Institute Bangladesh(SRBD). I am interested in image processing.
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

88 Responses to How to Install IIS on Windows 7

  1. shuvobangla says:

    Is there any way to access visual studio virtual server from client PC having no IIS install?

  2. Pingback: How to Install SQL server 2008 on Windows 7 | razibdeb

  3. prabhleen says:

    Thank you,u r great.

  4. Moinur says:

    Thanks a lot. Its working.

  5. sristy says:

    vai an error occured…

  6. Ernest says:

    Thank you

  7. Peter says:

    Trying to install IIS on a Windows 7 Ultimate machine… Walked through you tutorial but http://localhost resulted in a 404 page – webpage not found… Am I missing a Default page…?

    • razibdeb says:

      Did you check the Default Document when checking Static Content in Step 7 ? if not then do it
      And before doing that got to your drive where you installed windows, if that is C then go C:\inetpub\wwwroot\ then check may be there is no file named Default.html

  8. Asha says:

    An error occured saying ‘An error has occured.Not all of the features were successfully changed’ how to solve it?

  9. Manali says:

    i cant installed iis server by giving these steps…
    error occur to installing iis in win 7
    what i do..???

  10. Ravendra Gupta says:

    thanx alot .. 🙂

  11. medro says:

    mine not working, each time i try the computer hangs!

  12. aufaanafis says:

    thanks alot Razib

  13. Pingback: How to Install IIS on Windows 7 | razibdeb « Hinstein's word

  14. jayson says:

    thanks 🙂

  15. sharanya says:


  16. Fernie says:

    I followed all the instructions but the http://localhost/ doesn’t work. I cannot see the page you are pertaining to.

    • razibdeb says:

      Go to the C:\inetpub\wwwroot\
      see are there any file named Default.html
      if there is no any then may be u didn’t do the step 7 properly. check as the figure step 7.
      Hope this will work.

  17. Akshata says:

    hey…please suggest me some solution i got the error ” HTTP Error 404.4 and handler not found”..what should i do?? how can i know the iis is installed on my pc??

  18. Mie says:

    i ve got a problem here.
    my attendance system seems working using iis on win xp
    but in win 7 , certain database doesnt show in my attendance system
    isnt iis problem? or do i need to configure the security?

    • razibdeb says:

      did u restore all the database from windows XP to win 7?
      sometimes there are some problems occurs in connecting to SQL server to IIS for security.
      may be i don’t understand ur problem properly. try to debug your system and see the errors.

  19. THANKS,

  20. somasekhar says:

    Hi im using Win 7 Home basic.
    I tried to install IIS but in the IIS list boxes im missing some of the components apart what u have shown in the demo.
    I have only some of the components in the IIS list.
    I tried with that only but im getting error msg.

  21. kumararajas says:


    I followed your steps.. But am getting 404 error.

    As you said, i did with all the steps completely.. still not working..

    And i checked in wwwroot folder, i dont have anthing called Default.htm but. In step7, i have selected for Default Document.

    what may be the issue?

  22. Hostgator says:

    cool it worked.. thanks for the post

  23. sathya says:

    hi!! I installed IIS based on ur procedure.. on running local host, I got the following error:
    Parser Error Message: Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive.

    Source Error:

    Line 16:
    Line 17:
    Line 18: <authentication mode="Forms

    Source File: C:\inetpub\wwwroot\web.config Line: 16

    I tried modifying it on the above file.. it still couldn't replace the original file.. please help

  24. shashikant says:

    Thank you so much friend
    i followed all steps and installed iis successfully..

  25. Afridi says:

    Excellent Post Solved My Problem

  26. krish says:

    Thanks Good Explanations

  27. naz says:

    i have tried this method but still localhost doest works.i have also tried iisreset/noforce command in cmd and restarted iis but still it doest there any other alternative method????

  28. Md. Sajid Khan says:

    nice job… works very nicely…….

  29. william says:

    how do i, just as in win xp change the properties settings for a web folder that i created for publishing, what i mean is, there used to be a feature that offered the files to be shared for the internet/working with iis.
    In win 7 this option is no where to found .
    Please help me

    • razibdeb says:

      I do not know what you are talking about. May be you want to share your folder in LAN. For that you have to select the folder and right click on that and select the option Share With then select Specific people. A new window will appear and from there add from dropdown Everone and Click Share.
      Now you will be able to access the folder from network.

  30. shekhar says:

    thanks it was very helpful to me..

  31. Sneha says:

    Thanks for a step by step guide

  32. Ashfaq says:

    Thanks buddy. & sir.
    It worked.
    Ashfaq. Pakistan

  33. sun07059 says:

    This is so helpful, I am a senior Database developer recently starts on Windows .NET application. Thanks, it is useful,

  34. karandeep says:

    hi iam karandeep… iyz working!

  35. Michael says:


    But to those that get 404 on Win7/IIS6, make sure that “IIS Management Console” is checked during installation

  36. Laura says:

    Thanks for the tutorial. I would like to setup IIS on Drive D: insead of Drive C:
    Can you tell me how to do it?

    • razibdeb says:

      may be you can’t change the destination in the time of installation but you can move the inetpub folder. Here is a link may help you


  37. Neenu says:

    After performing all these steps, an error occured saying ‘Not all of the features were successfully changed’… How to solve it?

  38. Dale says:

    Nice write-up! Thanks. I tried a couple of other write-ups on the net and wasn’t successful. I was with your write-up.

  39. faraz says:

    i am not able to install IIS on my windows 7 ultimate, its a cracked one and not original one I got with my laptop.

    Installation wont get completed, it breaks by the end saying, “some features not installed completely”

    wat to do now??? pls do help

  40. farzana says:

    Hi im using Win 7 Home basic.
    I tried to install IIS but in the IIS list boxes im missing some of the components apart what u have shown in the demo.
    I have only some of the components in the IIS list.
    I tried with that only but im getting error msg.

    may be Win7 Home basic does not support the all features of Win7 Professional. try in Win7 professional.

    should i get a new OS for this problem to get solved……?????

    • razibdeb says:

      I am not sure about this. May be you need to upgrade your OS. Google it. But I think Win7 Home Basic should have at least some feature that will allow you to host.

  41. akbar says:

    how to execute aspx file using iis

  42. harumn01 says:

    thank u sir,,,

    this is working//

  43. Rajan says:

    For all of your kind information : in windows 7 Home basic IIS services are not available.. you have to upgrade ur windows version or have to install any third party sofware that u can download from internet…..

  44. arulb2wrul says:

    Thanks razibdeb… i did everything as your procedure.. it’s work fine.. i installed iis in my windows7 os system… this system in LAN. but i want access in windows Xp (this system on the same LAN)… pls tell me.. once again i install the iis to windows xp..?

  45. suraj shitole says:


  46. vineet says:

    sir, does IIP works on windows 7 home basic, if not thn wt 2 do other thn upgrading or changing the OS.
    2. does joomla. xampp etc works on this software.

  47. Abdul Jabbar Patel says:

    nice article…. thanks …it solved my problem… thanks again.

  48. Ashish says:

    Nice article. Very descriptive and easy. Thanks.

  49. Thank you for sharing your info. I really appreciate your
    efforts and I will be waiting for your next post thanks once again.

  50. HTTP Error 503. The service is unavailable.
    this is appearing when i was entered http;//localhost/. please help me . and i have a widows 7 home basic and when i am going to turn on off windows features there are some options are not showing like, static content etc

    • Rajan Gupta says:

      Dear ishtiaq ahmed,
      In the version of Windows 7 “Home Basic” IIS is not available.
      You have to upgrade your windows copy either to proffesional of ultimate Version.

  51. You should include : if one has not installed the service pack / .net framework, he cant see iis in “turn windows features on or off”

  52. Meghna says:

    really thax…..but still im not able to save my file under wwwroot.message is coming that i dont have permission contact administration to save it…..pllzzz help

    • razibdeb says:

      Run the software you are using to save the file as an Administrator. only then you can save on that folder. just right click on the software and click on the Run As Administrator.

  53. Great blog! Do you have any recommendations for aspiring writers?
    I’m hoping to start my own site soon but I’m a little lost
    on everything. Would you suggest starting with a
    free platform like WordPress or go for a paid option?
    There are so many choices out there that I’m completely confused .. Any recommendations? Thanks a lot!

  54. nikhil says:

    Excellent! This post was very helpful for me. Thanks a Ton!!

  55. Arnab Maitra says:

    Its very good one. keep it on.

  56. Worked beautifully. Nice to have this information available.

  57. Pingback: How to Install SQL server 2008 on Windows 7 | Indian Website Post

  58. dsjfkslajkl says:

    hi my system is windows 7 ultimate 32bit whenever i open my control panel and programs and turn windows features on or off in that nothing is displayed in turn of windows features on or off window….
    how do i get the list of programs in windows features on or off.Any one please give solution please…….

  59. binish says:

    thank u so much

  60. Pingback: | Sai

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s