Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Run ASP.NET Website on Network through IIS 8.0

0.00/5 (No votes)
19 Feb 2014 1  
How to run a website on one PC to another PC through IIS 8.0

Introduction

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

Background

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

  1. Visual Studio 10 or higher
  2. .NET Framework 4.0
  3. IIS 8.0 : link for download (http://www.microsoft.com/en-in/download/details.aspx?id=34679 )

Using the Code

  1. Install IIS 8.0
  2. Start->Run->appwiz.cpl
    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.
  3. Start->Run->inetmgr
    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.
  4. Go to Application Pools->your Website->double click on it->select "Classic" from Managed Pipeline Mode->ok.
  5. You must add Default Document by : IIS-><your Website>->Double Click on "Default Document"-> Add -> yourDefaultpage.aspx.
  6. 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. 
  7. So now your website address is http://<Your IP like SampleWeb>:<Port Number like 8090>/yourpage.aspx 
  8. 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>) 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here