Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Thousands of businesses have used Microsoft ASP.NET to build professional, dynamic websites. In this course, web developer David Gassner demonstrates the tools needed to build and deploy a dynamic site using ASP.NET 3.5 or 4.5. Covering everything from installing and configuring Visual Web Developer 2008 or Visual Studio Express 2012 for Web and SQL Server Express to creating web form pages, this course is designed to give beginning and intermediate developers hands-on experience.
Once you have installed the .NET Framework you are then ready to deploy your website. There are a few steps involved. First, you will place the website somewhere on disk. Then you will create a virtual directory, an alias pointing to the location on disk of the website. Then you will go into the Windows XP Security Settings for the website folder and you will provide security access to the folder for the .NET Framework's user and then finally you will go into the IIS Administrator and provide anonymous access.
Let's go through the steps. I'll be working with a folder called TheNightOwl. Now you are going to setup a virtual directory. You can setup the virtual directory initially using Windows Explorer. I'll right-click on the folder TheNightOwl and I'll go to Sharing and Security. In the Properties View, I'll go the Web Sharing, and then I'll Share the folder by selecting that option. This dialog pops up labeled Edit Alias. An alias is essentially a virtual directory name, a pointer to the physical directory on disk.
Aliases for the web are typically created using all lowercase. So I'll set my Alias as simply nightowl. The Access permissions that are presented by default are the minimum that are needed. Read access to get to the files and Script access to execute your ASP.NET scripts. Click OK to save the virtual directory and then click OK again. Now, the next step is to provide Windows XP file access for this folder to the user that's used to run the ASP.NET website. Right-click on the folder again and select Sharing and Security. Go to the Security tab and take a look at the different options. There is security available for Administrators, System, and Training.
None of these three categories include the user that's used to run the ASP.NET website and IIS. So to easily grant that permission I'll click the Add button and I'm going to assign very broad permission. I'll type in the word Users and Check Names and I see BARDOTECHDEE1/ Users. This means I'm going to be granting these access permissions to all users on the computer and that's okay. I'll click OK and then with the new Users category selected, I'll select Full Control and click OK.
Now the next step is to provide anonymous access through the Internet Information Services Management Console. I'll go to the Start menu and select Control panel. Within the control panel I'll double click on Administrative Tools and from there go to Internet Information Services. This is the Internet Information Services Management Console. It was installed during the IIS installation. I'll go to the tree on the left and open the local computer and from there open the Web Sites and then select Default Web Site.
With Default Web Site selected in the panel on the right, I'll see a list of all the physical files and folders within the root folder and I'll also see any virtual directories including the nightowl virtual directory that I already setup. Now, I'll right-click on nightowl and I'll go to Properties. In the Properties screen, I'll click on Directory Security and then I'll click the Edit button under Anonymous access and authentication control. When you create a brand new virtual directory in Windows XP Service Pack 2, Anonymous access is disabled by default.
I will check to select Anonymous Access and notice that now I'll be working with the username IUSR and then the name of the machine. I'll click OK and then click OK again. And now I'm finally ready to test my website. I'll go to a browser and then I'll type in the address of the website. Because I'm still working on the local machine it will start with http://localhost and then the virtual directory name that I created, nightowl.
It may take a few moments for the server to respond on the first attempt. It's doing a little bit of backend processing. But once it's finished with that you will see the default homepage of the website rendered on the screen in the browser. Once the homepage is loaded you should be able to navigate around to other pages without any further delays. Now I'm loading a version of the website that doesn't use any database functionality, just to simplify this process. But if you have already installed your copy of SQL server and set up your database, you should be able to take other versions of the nightowl website from other chapters of the video series and deploy those instead and your database access should work right away without any hesitation.
So that completes the process of deploying an ASP.NET website using Internet Information Services and ASP.NET 3.5 for Windows XP.
Find answers to the most frequently asked questions about ASP.NET Essential Training.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
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.