Click here to Skip to main content
15,881,173 members
Articles / Web Development / HTML
Tip/Trick

Run ASP.NET Website on Network through IIS 8.0

Rate me:
Please Sign up or sign in to vote.
4.83/5 (7 votes)
19 Feb 2014CPOL1 min read 39.1K   10   14
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

HTML
(<system.webServer>        
	<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>) 

License

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


Written By
Software Developer (Senior)
India India
I am Pallav Singh working as a Sr. Software Engg. in a software Company, New Delhi since 7 years. I have created a Page in facebook & Developed a Website for those who want to develop their Programming Skills & Logics.

My Coding Community:
https://www.esoftcode.com

Facebook Page Link :
https://www.facebook.com/SoftwareCode

You can go on this page and ask any questions related to programming and logic (C#, ASP.Net, Sql Server, Oracle, Java, FoxPro, Access, Windows etc)

Comments and Discussions

 
QuestionI am getting an error during running my website. Pin
Member 1136626422-Jan-15 4:54
Member 1136626422-Jan-15 4:54 
SuggestionRe: I am getting an error during running my website. Pin
PallavSingh11-Feb-15 8:39
professionalPallavSingh11-Feb-15 8:39 
QuestionBasic.. Pin
Ben Bell20-Feb-14 4:23
Ben Bell20-Feb-14 4:23 
AnswerRe: Basic.. Pin
PallavSingh20-Feb-14 6:09
professionalPallavSingh20-Feb-14 6:09 
QuestionClassic or Integreated, that is the question Pin
B. Clay Shannon18-Feb-14 8:35
professionalB. Clay Shannon18-Feb-14 8:35 
AnswerRe: Classic or Integreated, that is the question Pin
PallavSingh18-Feb-14 18:22
professionalPallavSingh18-Feb-14 18:22 
GeneralRe: Classic or Integreated, that is the question Pin
B. Clay Shannon18-Feb-14 18:31
professionalB. Clay Shannon18-Feb-14 18:31 
GeneralRe: Classic or Integreated, that is the question Pin
PallavSingh18-Feb-14 18:34
professionalPallavSingh18-Feb-14 18:34 
QuestionTypo? Pin
B. Clay Shannon18-Feb-14 7:01
professionalB. Clay Shannon18-Feb-14 7:01 
AnswerRe: Typo? Pin
PallavSingh18-Feb-14 18:07
professionalPallavSingh18-Feb-14 18:07 
QuestionWhat are the appropriate options? Pin
B. Clay Shannon18-Feb-14 6:58
professionalB. Clay Shannon18-Feb-14 6:58 
AnswerRe: What are the appropriate options? Pin
PallavSingh18-Feb-14 18:11
professionalPallavSingh18-Feb-14 18:11 
GeneralRe: What are the appropriate options? Pin
B. Clay Shannon18-Feb-14 18:30
professionalB. Clay Shannon18-Feb-14 18:30 
AnswerRe: What are the appropriate options? Pin
PallavSingh18-Feb-14 18:44
professionalPallavSingh18-Feb-14 18:44 

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.