Run ASP.NET Website on Network through Internet Information Services (IIS)

In this blog, you can learn how to add website in IIS (Internet Information Services) 8.0 and host it on the network.

Before giving a description about this, you need to install some software on your PC:

    Steps:

    1. Install IIS 8.0
    2. Start->Run->appwiz.cpl
    3. Turn Windows Features on or off -> Check on Internet Information Service (IIS) -> Check on Appropriate Options 
      Must check on World Wide Web Services->Application Development Features. 
      Click on OK button->finish. 
      It will take some time.
    4. Start->Run->inetmgr 
    5. Right click on Sites->Add Website->Enter Site name as project name->Select Physical Path (where your Project is saved)->Enter IP Address of your system->Enter Port Number like (8090) ->check on Start Website Immediately->Press Ok Button 
      Now your new website is added on the IIS Server.
    6. Go to Application Pools->your Website->double click on it->select "Classic" from Managed Pipeline Mode->ok.
    7. You must add Default Document by : IIS-><your Website>->Double Click on "Default Document"-> Add -> yourDefaultpage.aspx.
    8. IIS-><your Website>->Double Click on "Directory Browsing" -> Enable it from right corner. It is for Directory access (It does not work as a website, it's work like directory listing of your project in web page). You can skip this step. 
    9. So now your website address is http://<Your IP like SampleWeb>:<Port Number like 8090>/yourpage.aspx 
    10. Now you can access your local website on LAN.

    Note: If any problem exists, go to your project->web.config ->Remove This

    (<system.webServer>        
    <modules runAllManagedModulesForAllRequests="true"/>
    </system.webServer>) 
  • tags:
Author Profile

pallav

Pallav Kumar

@pallav
Software Engineer
Delhi, India

Leave a Comment

message*