Click here to Skip to main content
Click here to Skip to main content

Run ASP.NET Website on Network through IIS 8.0

, 19 Feb 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

PallavSingh
Software Developer (Senior)
India India
I am Pallav Singh working as a Sr. Software Engg. in a software Company in New Delhi since 7 years. I have created a Page in facebook for those who like to develop their Programming Skills & Logics.
 
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)
Follow on   Twitter   LinkedIn

Comments and Discussions

 
QuestionBasic.. PinmemberBen Bell20-Feb-14 5:23 
AnswerRe: Basic.. PinprofessionalPallavSingh20-Feb-14 7:09 
QuestionClassic or Integreated, that is the question PinprofessionalB. Clay Shannon18-Feb-14 9:35 
AnswerRe: Classic or Integreated, that is the question PinprofessionalPallavSingh18-Feb-14 19:22 
GeneralRe: Classic or Integreated, that is the question PinprofessionalB. Clay Shannon18-Feb-14 19:31 
GeneralRe: Classic or Integreated, that is the question PinprofessionalPallavSingh18-Feb-14 19:34 
QuestionTypo? PinprofessionalB. Clay Shannon18-Feb-14 8:01 
AnswerRe: Typo? PinprofessionalPallavSingh18-Feb-14 19:07 
QuestionWhat are the appropriate options? PinprofessionalB. Clay Shannon18-Feb-14 7:58 
AnswerRe: What are the appropriate options? PinprofessionalPallavSingh18-Feb-14 19:11 
GeneralRe: What are the appropriate options? PinprofessionalB. Clay Shannon18-Feb-14 19:30 
AnswerRe: What are the appropriate options? PinprofessionalPallavSingh18-Feb-14 19:44 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141216.1 | Last Updated 19 Feb 2014
Article Copyright 2014 by PallavSingh
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid