Developing Microsoft ASP.NET Web Applications Using Visual Studio .NET Automated Classroom Setup Guide

Developing Microsoft ASP.NET Web Applications Using Visual Studio .NET Automated Classroom Setup Guide

Part Number: X08-90701 Course Number: 2310B Released: 07/2002 Developing Microsoft® ASP.NET Web Applications Using Visual Studio® .NET Automated Classroom Setup Guide

Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred.

Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.

 2001-2002 Microsoft Corporation. All rights reserved.

Microsoft, MS-DOS, Windows, Windows NT, Active X, FrontPage, MSDN, PowerPoint, Visual Basic, Visual C#, Visual C++, and Visual Studio are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Course Number: 2310B Part Number: X08-90701 Released: 07/2002

Automated Classroom Setup Guide iii Contents Classroom Requirements . . 1 Classroom Configuration . . 3 Setup Instructions . . 4 Automated Classroom Setup .

. 6 Classroom Setup Checklist . . 19 Customization Information . . 36

Automated Classroom Setup Guide 1 Classroom Requirements This course requires a classroom with a minimum of one computer for the instructor and one computer for each student. Before class begins, install and configure all computers by using the following information and instructions. All hardware must be on the Hardware Compatibility List (HCL) for Microsoft® Windows® XP. Instructor Computer The instructor computer requires the following hardware and software configuration. Hardware Level 3 The following hardware is the minimum required for the instructor computer: „ Pentium III or personal computer with processor speed greater than or equal to 700 megahertz (MHz) „ System bus (PCI bus must meet 2.1 specs) „ At least 768 megabytes (MB) of RAM „ 16-gigabyte (GB) hard disk „ 512-kilobyte (KB) L2 cache „ CD-ROM/DVD player „ Non-ISA network adapter (10/100 megabits per second [Mbps] required full duplex) „ 4-MB video adapter „ Super VGA (SVGA) monitor (17 inch) „ Microsoft Mouse or compatible pointing device „ Sound card with amplified speakers „ Projection display device that supports SVGA 800x600, 256-colors Software Please note that unless otherwise indicated, this software is not included on the Trainer Materials compact disc.

The following software is required for the instructor computer: „ Microsoft Windows XP Professional „ Microsoft SQL Server™ 2000 Developer Edition (Included in Microsoft Visual Studio® .NET Enterprise Developer Edition) „ Microsoft SQL Server 2000 Service Pack 2 „ Visual Studio .NET Enterprise Developer Edition, including the Windows Component Update „ Microsoft Office XP Professional with Microsoft FrontPage® (Included in Microsoft Office XP Developer)

2 Automated Classroom Setup Guide Student Computer Each student computer requires the following hardware and software configuration. Hardware Level 3 The following hardware is required for each student computer: „ Pentium III or personal computer with processor speed greater than or equal to 700 MHz „ System bus (PCI bus must meet 2.1 specs) „ At least 768 MB of RAM „ 16-GB hard disk „ 512-KB L2 cache „ CD-ROM/DVD player „ Non-ISA network adapter (10/100 Mbps required full duplex) „ 4-MB video adapter „ SVGA monitor (17 inch) „ Microsoft Mouse or compatible pointing device „ Sound card with headphones or speakers Software Please note that unless otherwise indicated, this software is not included on the Trainer Materials compact disc.

The following software is required for each student computer: „ Windows XP Professional „ SQL Server 2000 Developer Edition (Included in Microsoft Visual Studio .NET Enterprise Developer Edition) „ SQL Server 2000 Service Pack 2 „ Visual Studio .NET Enterprise Developer Edition, including the Windows Component Update

Automated Classroom Setup Guide 3 Classroom Configuration The following configuration and naming conventions are suggested for this course, but are not required: „ The instructor computer is named London. „ The student computers are named according to the following table. The following table shows the names and Internet Protocol (IP) addresses of the student computers. The instructor computer must be installed first, and then the student computers can be installed in any order or concurrently. In the IP address, x is the classroom number.

Computer name IP address Vancouver 192.168.x.1 Denver 192.168.x.2 Perth 192.168.x.3 Brisbane 192.168.x.4 Lisbon 192.168.x.5 Bonn 192.168.x.6 Lima 192.168.x.7 Santiago 192.168.x.8 Bangalore 192.168.x.9 Singapore 192.168.x.10 Casablanca 192.168.x.11 Tunis 192.168.x.12 Acapulco 192.168.x.13 Miami 192.168.x.14 Auckland 192.168.x.15 Suva 192.168.x.16 Stockholm 192.168.x.17 Moscow 192.168.x.18 Caracas 192.168.x.19 Montevideo 192.168.x.20 Manila 192.168.x.21 Tokyo 192.168.x.22 Khartoum 192.168.x.23 Nairobi 192.168.x.24 Single Domain/Workgroup Model Each student computer in the classroom has Windows XP Professional installed as a stand-alone workstation in a workgroup.

4 Automated Classroom Setup Guide Setup Instructions Use the following procedures to prepare each computer for class. The instructor computer (London) must be set up completely before you begin setting up the student computers. Student computer setup occurs over the network by using shared folders that are created on the instructor computer. Before You Begin Before you set up the classroom, you will need to do the following: „ Read through all setup procedures. „ Make sure that you have the Trainer Materials compact disc that is provided with the course materials.

„ Prepare a Windows 98 system disk and a network boot disk.

Windows 98 System Disk To set up the instructor computer, you must have a Windows 98 system disk. This disk must include the following: „ Windows 98 system files. „ MS-DOS® drivers for the CD-ROM drive of the instructor computer. „ The following files: Xcopy.exe, Xcopy32.exe, and Xcopy32.mod. These files must be located either in the root directory of the system disk or in a location that is specified in the MS-DOS path statement in the Autoexec.bat file.

„ The files Smartdrv.exe and Himem.sys. Running Smartdrv.exe dramatically increases the performance of the file-copying process that occurs during the initial phase of setup. With Smartdrv loaded, this process generally takes 30 minutes or less. Without Smartdrv, it may take several hours. Network Boot Disk Set up of the student computers takes place over the network. As a result, you must have an MS-DOS system disk that includes drivers for network adapters in the student computers. In addition, the network boot disk must include the files Xcopy.exe, Xcopy32.exe, and Xcopy32.mod, either in the root directory of the network boot disk or in a location that is specified in the MS-DOS path statement in the Autoexec.bat file.

This setup does not include a Dynamic Host Configuration Protocol (DHCP) server. To connect to the instructor computer by using a network boot disk, a static IP address must be specified. An unsupported network boot disk with this option is available for download on the Microsoft Certified Trainer (MCT) Web site. Important Important

Automated Classroom Setup Guide 5 The batch files that are used to set up the student computers require a large amount of MS-DOS environment space. Therefore, it is recommended that you include the following line in the Config.sys file on the boot disk: Shell = a:\command.com /p /e:1024 Windows XP does not include a utility for creating network boot disks.

Setup Overview Read this section before you begin configuring the computers. Failure to follow the instructions in this Automated Classroom Setup Guide will cause the labs to fail.

These setup instructions provide you with both automated and manual installation procedures and automated configuration procedures. If you complete the automated installation, the configuration is also completed automatically. If you cannot complete an automated installation of the software, you can follow the manual procedures in the Manual Classroom Setup Guide on the Trainer Materials compact disc. Following a manual installation, you must complete the post-installation configuration procedure. It is very important that you allocate enough time for a manual installation if you are not sure that the automated installation will work in your environment.

Verify that the classroom is set up correctly by referring to the Classroom Setup Checklist section in this guide. Estimated time to set up the classroom: 8 hours Note Important

6 Automated Classroom Setup Guide Automated Classroom Setup Use the following instructions to perform an automated setup of the classroom. Instructor Computer Use the following instructions to set up the instructor computer. Ç To set up the hardware 1. Set up the hardware according to the manufacturer’s instructions. (Refer to the hardware requirements.) 2. Configure the hard disk as follows: • Drive C: 12 GB formatted as FAT32 (file allocation table) Ç To install and configure Windows XP Professional on the instructor computer and install the courseware files 1. Start the computer by using the Windows 98 system disk.

2. Insert the Trainer Materials compact disc into the CD-ROM drive. 3. Type x:\setup\lonset (where x is the drive letter of your CD-ROM drive), and then press ENTER.

4. At the Course Title screen, press SPACEBAR to continue. 5. At the Welcome screen, press SPACEBAR to continue. 6. At the Selecting Classroom Number screen, type the number that corresponds to the IP network number to be used for this classroom. Ensure that the trainer delivering this class is aware of the network number that is used. The students will require this number during the installation lab. Unless the classrooms on your network are isolated from one another, you will need to choose a unique network number for each classroom to avoid possible IP address conflicts.

The Installing Configuration Files screen appears, and the classroom setup files and course lab files are copied to the hard disk.

7. When the file copying process is complete, press SPACEBAR to continue. 8. Insert the Windows XP Professional compact disc into the CD-ROM drive, and then press SPACEBAR to continue. Set up copies the I386 folder, which is on the Windows XP Professional compact disc, to the hard disk. If Smartdrv is loaded, this process should take less than 30 minutes. Note Note

Automated Classroom Setup Guide 7 9. After the file copy process is complete, you will be prompted to enter your Windows XP Professional Product Key. 10. After you have entered your Product Key and have confirmed that it is correct, remove the startup disk and the Windows XP Professional compact disc. An automated setup of Windows XP Professional begins. When the automated setup process is complete, Setup restarts the computer, logs you on as Administrator, and runs a batch file to begin the customized setup of the instructor computer (London).

If the autologon fails to work, log on as Administrator with a password of P@ssw0rd.

The setup batch file will then continue. 11. You will then be prompted to insert the SQL Server 2000 Developer Edition and the SQL Server 2000 Service Pack 2 compact discs in to the CD-ROM drive. Setup will copy the files to drive C. Ç Creating an Administrative Install Point for Microsoft Office XP Professional With Front Page 1. When prompted, insert the Office XP Developer Edition compact disc into the CD-ROM drive.

Administrative Installs are only supported in the Enterprise and Developer (Office XP Professional with Front Page) Editions. 2. On the Administrative Installation page, verify that Northwind Traders is in the Organization box. Type it in if necessary 3. Verify that c:\OfficeXP is in the Install Location box. Type it in, if necessary. 4. Enter the 25 character Product Key and click Next. 5. On the End User License Agreement page, accept the terms of the agreement and click Install. Setup will copy all of the files needed for installing Office XP.

6. Click OK when Setup displays a message that the set up has completed successfully.

You will be prompted to insert the Visual Studio .NET Windows Component Update and all four Visual Studio .NET Enterprise Developer compact discs into the CD-ROM drive. Setup will copy all of the files that are needed for installation to the hard drive. Setup will then install the courseware files and configure the system for the class. Setup will then install SQL Server 2000 Developer Edition, SQL Server 2000 Service Pack 2, Office XP Professional with Front Page, Visual Studio .NET Windows Component Update, and Visual Studio .NET Enterprise Developer Edition.

Note Important

8 Automated Classroom Setup Guide When all of the items in the checklist are marked as complete, automated setup of the instructor computer is complete. To verify that the instructor computer is set up correctly, refer to the Classroom Setup Checklist section of this guide. Post-Installation Tasks for the Instructor Computer Use the following instructions to complete the set up of the instructor computer. Ç Install the Microsoft .NET Framework Service Pack 1 1. Download the Microsoft .NET Framework Service Pack 1 (NDP10SP317396.exe) from the following Web address: http://msdn.microsoft.com/netframework/downloads/sp1/default.asp 2.

Follow the directions on the page to download the file in the appropriate language.

3. When prompted to download the file, click Open. 4. When you are prompted to install the Microsoft .NET Framework Service Pack 1, click OK. 5. When prompted with the license agreement, click I accept. 6. When installation is complete, click OK. 7. Click Yes when prompted to restart system. Configure the Final Solution This section must be completed on the Instructor computer only. When setting up student computers, do not perform this step. Ç Create the Visual Studio .NET lab solution 1. Using Visual Studio .NET, create a new blank solution named 2310LabApplication: a. On the File menu, click New, and then click Blank Solution.

b. In the New Project dialog box, enter 2310LabApplication in the Name text box, and then click OK.

Ç Create the Visual Basic .NET Benefits Web application 1. Create a new ASP.NET Web Application project, named BenefitsVB, in the 2310LabApplication solution: a. On the File menu, click New, and then click Project. b. In the New Project dialog box, click Visual Basic Projects in the Project Types list, click ASP.NET Web Application in the Templates list, set the Location to http://localhost/BenefitsVB, click Add to Solution, and then click OK. Verify that you have capitalized the BenefitsVB project as shown. Important Important Caution

Automated Classroom Setup Guide 9 Ç Update the BenefitsVB project 1.

In Visual Studio .NET, open the 2310LabApplication solution file. 2. In Solution Explorer, right-click BenefitsVB, point to Add, and then click Add Existing Item. 3. Browse to the C:\Program Files\msdntrain\2310\Labfiles\Lab16\VB\ Solution\BenefitsVB folder. 4. In the Files of type box of the Add Existing Item – BenefitsVB dialog box, choose All Files ) . 5. Select all of the files in this folder, and then click Open. 6. Click Yes to replace any existing files and to create new files. Ç Create the Visual Basic .NET BenefitsListVB class library 1. Create a new Microsoft Visual Basic® .NET Class Library project, name it BenefitsListVB, and then add it to the 2310LabApplication solution: a.

On the File menu, click New, and then click Project. b. In the New Project dialog box, click Visual Basic Projects in the Project Types list, click Class Library in the Templates list, set the Name to BenefitsListVB, click Add to Solution, and then click OK. Verify that you have capitalized the BenefitsListVB project as shown.

Ç Update the BenefitsListVB project 1. In Visual Studio .NET, open the 2310LabApplication solution file. 2. In Solution Explorer, right-click BenefitsListVB, point to Add, and then click Add Existing Item. 3. Browse to the C:\Program Files\msdntrain\2310\Labfiles\Lab16\VB\Solution\BenefitsListVB folder. 4. In the Files of type box of the Add Existing Item – BenefitsListVB dialog box, choose All Files ) . 5. Select all of the files in this folder, and then click Open. 6. Click Yes to replace any existing files and to create new files, and then click Yes when asked if you want to reload the Class1.vb file.

Caution

10 Automated Classroom Setup Guide Ç Create a reference to the BenefitsListVB component in the BenefitsVB project 1. In the BenefitsVB project in the 2310LabApplication solution, complete the following steps to add a reference to the BenefitsListVB component that you just created: a. Right-click the BenefitsVB project in Solution Explorer and then click Add Reference. b. In the Add Reference dialog box, on the Projects tab, double-click the BenefitsListVB project. c. In the Selected Components list, select the BenefitsListVB component, and then click OK.

The component is added to the References folder in Solution Explorer. Ç Create the Visual Basic .NET Dental XML Web Service 1. Create a new Visual Basic .NET ASP.NET Web Service project, named DentalServiceVB, and then add it to the 2310LabApplication solution: a. On the File menu, click New, and then click Project. b. In the New Project dialog box, click Visual Basic Projects in the Project Types list, click ASP.NET Web Service in the Templates list, set the Location to http://localhost/DentalServiceVB, click Add to Solution, and then click OK.

Verify that you have capitalized the DentalServiceVB project as shown.

Ç Update the DentalServiceVB project 1. In Visual Studio .NET, open the 2310LabApplication solution file. 2. In Solution Explorer, right-click DentalServiceVB, point to Add, and then click Add Existing Item. 3. Browse to the C:\Program Files\msdntrain\2310\Labfiles\Lab16\VB\ Solution\DentalServiceVB folder. 4. In the Files of type box of the Add Existing Item – DentalServiceVB dialog box, choose All Files ) . 5. Select all of the files in this folder, and then click Open. 6. Click Yes to replace any existing files and to create new files, and then click Yes to reload any open files.

7. Build the DentalService XML Web service by right-clicking the DentalServiceVB project in Solution Explorer and clicking Build. Caution

You can also read