Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In order to deploy your ASP.NET website you will need work with Internet Information Services or IIS. IIS is Microsoft's enterprise level web server. It's included with many editions of Windows including Windows XP Professional, Windows Server 2003, Windows Server 2008 and many editions of Windows Vista. In this video I'll describe how to install IIS on Windows XP Professional. In order to work with ASP.NET 3.5 you will need to be working with at least Windows XP Service Pack 2, which is the version I'm working on right now, and you will need access to your Windows Media CD. That is the CD from which you installed the Windows operating system. That's because the installation files for IIS are on the CD rather than part of the default installation of the operating system itself.
From the Windows menu, go to the Control panel. I'll go to the Start menu and select Control panel and in the Control panel if you see the Category View, which will only have a few options, switch to this the Classic View by clicking the appropriate link. Then from the Control panel Classic View double-click on Add or Remove Programs. Click on Add/ Remove Windows Components. It might take a few moments for Windows XP to scan your computer, to see what components were already installed and then it presents this, the Windows Components Wizard.
Scroll down a bit and you will see an item labeled Internet Information Services. Check that option and then click the Details button. The Details button shows a list of the subcomponents for IIS. You will need to install most of the items that are already selected here. The one that's totally optional is the SMTP Service. SMTP stands for Send Mail Transfer Protocol and it's a service that you can use if you want to send mail from your own server. Setting up SMTP is a fairly complex operation and there are security considerations that I won't go into here. So for this purpose I'll just deselect it. But I'll leave all the other items selected that are already selected including World Wide Web Service, Internet Information Service SnapIn, Documentation and Common Files and then I'll click OK.
Then I'll click Next and that causes the installation to proceed. The installation process installs the actual software and also creates a default directory structure named c:/inetpub/www.root. That folder will become your IIS default documents folder. So that if a user navigates to your website and provides just the root folder address you will actually be addressing files in the wwwroot location.
Once the installation is complete you will see this message, Completing the windows components wizard, click Finish. Then close the Add or Remove Programs window and return to the Control panel. Go to Administrative Tools and from there into Services. In the Services panel scroll all the way down to the bottom and you will find an item labeled World Wide Web Publishing that's the actual IIS service and you can stop and start your server from this item.
Right after installation it's a good idea to stop the service and then restart it. In some circumstances you might find you actually have to reboot the computer, before you can address your server for the first time. Now the first time you go into the server, you might see some errors. I'll go to our browser and type in http://localhost. It might take a few moments to address the server for the first time and you might see this pop up login dialog. The reason this dialog appears is because the default user that's being used to manage your IIS service is not authenticated for the www.rootfolder. So there is a bit of a set up process to follow. I'll Cancel the dialog and then I'll hold down the Window key and press E, for Windows Explorer and I'll navigate to C: > Inetpub.
The wwwroot folder is right here. This is the folder that by default is secured. I'll right-click on it and select Sharing and Security. In the Properties dialog look for a Security tab. Now if you don't see the Security tab, press Escape go back to Windows Explorer, go to Tools > Folder Options. In the Folder Options dialog click View, scroll down to the bottom of the options and deselect this option, Use simple file sharing. Then click OK and then once again right-click on wwwroot and select Properties.
This time you should see the Security tab, click on it. Then in the list of group or user names go down to Users, click on it and then in the Permissions list click on the check box under Allow and then I'll click OK. And you will have granted permissions for all the users on the computer to access this folder. Go back to the browser and once again navigate to the http://localhost. Once again you might see the login dialog. That's because by default you are trying to access a file. Which is also secured so there is one more step in the process to testing your server. Press Escape or click Cancel and then create a new file. I have already created the file that's needed. Its name is Default.htm. And I'll open it in a Text Editor, I'll use WordPad and show you that it contains the simplest possible web page.
It has a pair of http tags, a pair of body tags and a Heading1 with the words Hello World! I'll take that file and copy it to the Clipboard and then I'll navigate to my wwwroot folder and paste it into place. Then I'll go back to the browser again and I'll type in again http://localhost and this time I should see the string Hello World! displayed in large text. Don't worry about any security prompts you might see. After the next step, which will be installation of ASP.NET 3.5 and its integration with IIS, you will be ready to start deploying your websites right away.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 104465 Viewers
56 Video lessons · 116380 Viewers
71 Video lessons · 85608 Viewers
131 Video lessons · 40973 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.