Click here to Skip to main content
13,260,113 members (44,491 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


36 bookmarked
Posted 8 Nov 2011

How To Deploy a Web App in IIS

, 8 Nov 2011
Rate this:
Please Sign up or sign in to vote.
How To Deploy a Web App in IIS


Listed below are the steps to deploy a web app in IIS.

  1. Click start. Click Run.
  2. Type inetmgr in the Run dialog Box.

  3. Expand the localComputer. Right Click on the Sites. Click Add New Site as shown below:

  4. Type the name of the web site. In my case, it is "MyWebSite". Type the location of the web application or site. Give a port number (You have to manually add this port number to inbound rules of Windows Firewall later). And then press OK.

    If a connection with that port number already exists, then give another port number.

  5. Right click on the site name ("MyWebSite" in my case), click on "Manage Web Site" and "Browse".

  6. </li />
  7. In the sub directories of the web site, if any web.config files are present, remove the tags with names authorization, roleprovider, profile, members. As this may cause the error as shown below:

  8. Change the Framework of the application pool to v4.0:

  9. ******************************************

    Change the "CodeBehind" in the aspx file to "CodeFile".

    Change the URLs to the appropriate directory. (Since ~ means root directory, it has a different meaning when executed in Visual Studio when compared to IIS.)

  10. All the above steps make the site work from the same computer in which IIS is installed. If you go to another computer and type the IP address of the system (in which IIS is installed), then you may not be able to access the website. For this, you have to configure the port in the Windows Firewall.
  11. Open the Windows Firewall from control panel as "Control Panel\All Control Panel Items\Windows Firewall". Click "Advanced Settings".

    Right click on InBound Rules as shown below. And fill the details as necessary.

That's it! You can access the web site (hosted with IIS) from within the LAN by just typing the IP address of the system on which IIS is installed as:

http://IPAddress:Portnumber e.g.:- 


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

shashikanth 2011
Software Developer GGK Technologies
India India
No Biography provided

You may also be interested in...


Comments and Discussions

Questioni am not understood step 6 how to remove web.config Pin
Siddaram K.Patil24-Jan-16 19:22
memberSiddaram K.Patil24-Jan-16 19:22 
QuestionThis article helps me.. Thank you. Pin
Member 1184149316-Jul-15 1:05
memberMember 1184149316-Jul-15 1:05 
QuestionWHERE Pin
alan937-Apr-15 15:23
memberalan937-Apr-15 15:23 
GeneralMy vote of 3 Pin
syedkhaleel5-Feb-15 18:58
membersyedkhaleel5-Feb-15 18:58 
QuestionPls sir sort out this problem in mine case while deploying website on IIS. Pin
sandeep kr. sharma21-May-14 2:51
membersandeep kr. sharma21-May-14 2:51 
GeneralMy vote of 3 Pin
Dmitriy Dokshin5-May-14 10:09
memberDmitriy Dokshin5-May-14 10:09 
GeneralMy vote of 5 Pin
KaviSuja4-Sep-13 20:47
professionalKaviSuja4-Sep-13 20:47 
GeneralMy vote of 4 Pin
Member 916699029-Jun-13 17:25
memberMember 916699029-Jun-13 17:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171114.1 | Last Updated 8 Nov 2011
Article Copyright 2011 by shashikanth 2011
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid