Você está na página 1de 25

Developing Microsoft

ASP.NET Web
Applications Using
Visual Studio .NET
Manual 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,
Course Number: 2310B 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..

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.

Part Number:
Released: 07/2002
Manual Classroom Setup Guide

Contents
Software Version Support..........................................................................................1
Classroom Requirements...........................................................................................1
Classroom Configuration..........................................................................................2
Instructor Computer Checklist..................................................................................3
Instructor Computer (London)..................................................................................4
1. Set Up the Hardware........................................................................................4
2. Install Windows XP Professional.....................................................................4
3. Configure Windows XP Professional..............................................................6
4. Add Internet Information Services...................................................................6
5. Set the video display........................................................................................7
6. Install SQL Server 2000 Developer Edition....................................................7
7. Install SQL Server 2000 Service Pack 2..........................................................8
8. Install Visual Studio .NET...............................................................................8
9. Install the Microsoft .NET Framework Service Pack 1...................................9
10. Configure Visual Studio .NET to display bigger fonts................................10
11. Install lab, demonstration, and practice files...............................................10
12. Install and configure SQL Server databases................................................10
13. Configure Microsoft Internet Explorer........................................................11
14. Create demonstration and lab Web applications..........................................11
15. Set the folder options to show operating system files and hidden files......12
16. Install Courseware Fonts..............................................................................12
17. Install the Macromedia Flash 5.0 Plug-in....................................................12
18. Install PowerPoint........................................................................................12
19. Install the PowerPoint Slides.......................................................................13
20. Configure the Final Solution........................................................................13
21. Test the Setup...............................................................................................20
Student Computer Checklist....................................................................................22
Student Computers..................................................................................................23
1. Set Up the Hardware......................................................................................23
Appendix: 2002 Hardware Levels..........................................................................24

Course Number: 2310B


Part Number:
Released: 07/2002
Software Version Support
The manual and automated classroom setup guides have been developed and
tested on the full retail versions of the operating system and any applications to
be installed on the classroom computers. Technical support for classroom setup
requires that you use the full retail versions of the operating system and any
applications to be installed on the classroom computers.

Classroom Requirements
This course requires a classroom with one computer for the instructor and one
computer for each student. Before class begins, install and configure all of the
computers by using the information and instructions in this setup guide. All
hardware that is used must be listed on the Hardware Compatibility List (HCL)
for Microsoft® Windows® XP Professional. This course requires Microsoft
Certified Technical Education Center (Microsoft CTEC) hardware level 3 for
2002 for the instructor computer and Microsoft CTEC hardware level 3 for
2002 for the student computers. The current hardware levels are in the
Appendix for this setup guide.
When you have completed the classroom setup, the Instructor and student
computers should all be connected to the classroom network.

Software
The following table shows all of the software that is needed to set up the
classroom for this course, including the version that was tested with the course
and where the software can be found.
Software Version tested and notes

Microsoft Windows XP Professional Edition


Microsoft SQL Server™ 2000 Developer Edition
Visual Studio .NET CDs
Microsoft SQL Server 2000 Service Pack 2 Not applicable
Microsoft Visual Studio® .NET Enterprise Developer Edition
Microsoft Visual Studio .NET Service Pack 1 Not applicable
Macromedia Flash Player Version 5.0
Trainer Compact Disk or
http://www.macromedia.com

Classroom Configuration
The computer names and Internet Protocol (IP) addresses listed are provided as
suggestions. You can simultaneously install all of the computers.
 Use static IP addresses only if Dynamic Host Configuration Protocol
(DHCP) is unavailable. If you use static IP addresses, make sure each is
unique within your intranet.
 In the following table, x is the classroom number, which may be any whole
number greater than 0 and less than 255.
Example Configuration
Computer name IP address

London (instructor computer) 192.168.x.200


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

Workgroup Model
Instructor and students are all in the workgroup named “Workgroup.”
Error! No text of specified style in document. 3

Instructor Computer Checklist


 1. Set up the hardware
 2. Install Windows XP Professional
 3 . Configure Windows XP Professional
 4. Add Internet Information Services (IIS)
 5. Set the video display
 6. Install SQL Server 2000 Developer Edition
 7. Install SQL Server 2000 Service Pack 2
 8. Install Visual Studio .NET
 9. Install the Microsoft .NET Framework Service Pack 1
 10. Configure Visual Studio .NET to display bigger fonts
 11. Install lab, demonstration, and practice files
 12 Install SQL Server databases
 13. Configure Microsoft Internet Explorer
 14. Create demonstration and lab Web applications
 15. Set the folder options to show operating system files and hidden
files
 16. Install Courseware Fonts
 17. Install the Macromedia Flash 5.0 Plug-in
 18. Install Microsoft PowerPoint
 19. Install the PowerPoint Slides
 20. Configure the Final Solution
 21. Test the Setup
Tip
Note
Task Summary
Install
Set upWindows
the computer
XP with
one partition with
Professional formatted
all with
Error! No text of specified style in document. the FAT32except
defaults, file system.
as noted in
the table in Step 5.

Instructor Computer (London)


Use the instructions in the following section to set up the classroom manually.

1. Set Up the Hardware


.1 Set up the hardware according to the manufacturer’s instructions. (Refer to
the hardware requirements.)

If necessary, configure your computer so that it starts from the hard disk and
then from the CD-ROM drive.

.2 Configure the hard disk with one partition of at least 12 Gigabytes,


formatted as Fat32.

2. Install Windows XP Professional


To speed up this installation, run SMARTDrive version 5.0 or later
(smartdrv.exe), a utility that ships with Microsoft MS-DOS® version 6.22 and
later, prior to running the Windows XP Professional setup program.

.1 Boot the computer by using a Microsoft MS-DOS® disk that loads either
CD or network drivers.
.2 Insert the disc containing Windows XP Professional into the CD-ROM drive
or map a network share to the folder containing its setup executable file.
.3 Switch to the \i386 folder on the CD-ROM or network share.
.4 Type winnt and then press ENTER.
Setup will ask for the path where the Windows XP Professional files are
located. Press ENTER to accept the default path that is displayed, or type
the correct path for your computer and then press ENTER.
Windows XP Professional files will be copied to the hard disk.

Remember to remove the disc containing Windows XP Professional from the


CD-ROM drive and the MS-DOS disk that you used to boot the computer.

.5 Follow the prompts to install Windows XP Professional. Use the parameters


that are provided in the following table. Respond to all of the other
installation prompts with defaults or with information that is appropriate for
your computer or location.
For this information Use

Partition Install to drive C:


Convert to the NTFS file system.
Name and Organization Provide your name and your organization.
Product key Enter the product key for Windows XP.
Computer name Use a computer name that is unique within your
intranet.
Error! No text of specified style in document. 5

For this information Use


See the Classroom Configuration section for
naming suggestions. Use London for the
instructor computer.

Administrator account password


Set to P@ssw0rd
Networking settings If DHCP is available, select Typical settings, and
click Next. Skip to the Workgroup or computer
domain step below.

If DHCP is not available on your network,


choose Custom settings, and then click Next.
In the Network Components dialog box, select
the Internet Protocol (TCP/IP) check box, and
then click Properties.
In the Internet Protocol (TCP/IP) Properties
dialog box, select Use the following IP address
check box. Type the IP address and Subnet
mask for this computer, and then click OK.
Note: See the Classroom Configuration section
in this document for suggested IP addresses to
use. The subnet mask should be set to
255.255.255.0
In the Network Components dialog box, click
Next
Workgroup or computer domain Accept the default.

3. Configure Windows XP Professional


Use the following table as a guide to configuring Windows XP Professional.
Decision Point Action

Welcome to Microsoft Windows Click Next.


Will this computer connect to Click Next.
the Internet directly, or through a
network?
Ready to activate Windows? If you have already activated this copy of Windows
XP, then skip this step. Otherwise, click Yes, and
then supply the registration information. Then click
Submit.
Who will use this computer? Type values as appropriate. The values shown
below are examples.
Your name: Type Student
Click Next
Thank You Click Finish

 Add a password to the Student account


Note
Task Summary
Change
Add IIS tothethescreen
Windows XP
Professional
resolution to 1024x768.
installation.
Error! No text of specified style in document.

.1 Click Start, and then click Control Panel.


.2 In the Control Panel, click User Accounts.
.3 In the User Accounts dialog box, click Student.
.4 Click Create a password.
.5 In the Type a new password and Type the new password again to
confirm boxes, type P@ssw0rd and then click Create Password. Note that
the "0" in "P@ssw0rd" is a zero.
.6 If you are prompted to make folders and files private, click No.
.7 Close the User Accounts dialog box, and then close the Control Panel.

4. Add Internet Information Services


.1 Insert the Windows XP Professional installation disk into the CD-ROM or
DVD-ROM drive or map a drive to the network share that contains the
Windows XP Professional \i386 folder.
.2 Click Start, and then click Control Panel.
.3 Click Add or Remove Programs.
.4 In the Add or Remove Programs dialog box, click Add/Remove Windows
Components.
.5 Select the Internet Information Services (IIS) check box, and then click
Next.
.6 If you are installing from a mapped drive, browse to the location of the
Windows XP Professional \i386 folder and then click OK.
.7 When installation completes, click Finish.
.8 Close the Add or Remove Programs dialog box and then close the Control
Panel.

5. Set the video display


.1 Click Start, and then click Control Panel.
.2 Open the Appearance and Themes dialog box, and then click Change the
screen resolution.
.3 Set the following options:
.a Set the color depth to at least Medium (16 bit).
.b Set the screen area to 1024 by 768 pixels.

If possible, set the refresh frequency on the monitor to a value greater than 60
Hertz (Hz). Right-click the desktop, and then click Properties. Click Settings,
and then click Advanced. Click Monitor, and then change the screen refresh
rate to any value greater than 60 Hz from the list control on the Monitor tab. If
the projector to be used does not support a resolution of 1024 by 768, then the
resolution can be set to 800 by 600.

.4 Close Control Panel.


Task Summary
Install SQL Server 2000
Developer Edition with all
Error!Services
defaults, except No text of specified style in document. 7
Accounts, set to Use the
Local System account.
Authentication should be set
to Windows Authentication
Mode.

6. Install SQL Server 2000 Developer Edition


.1 Insert the SQL Server 2000 Developer Edition CD into the CD-ROM drive.
.2 Open autorun.exe, the setup executable file, and then click SQL Server
2000 Components.
.3 Click Install Database Server.
.4 Click Next in the following three dialog boxes:
.a Welcome
.b Computer Name
.c Installation Selection
.5 In the User Information dialog box, type the appropriate information, and
then click Next.
.6 In the Software License Agreement dialog box, click Yes if you agree to
the terms.
.7 In the CD-Key dialog box, type the product key, and then click Next.
.8 Click Next in the following three dialog boxes:
.a Installation Definition
.b Instance Name
.c Setup Type
.9 In the Services Accounts dialog box, click Use the Local System account,
and then click Next.
.10 In the Authentication Mode dialog box, click Next.
.11 In the Start Copying Files dialog box, click Next.
.12 In the Setup Complete dialog box, click Finish.

7. Install SQL Server 2000 Service Pack 2


 To install SQL Server 2000 Service Pack 2
.1 Insert the SQL Server 2000 Service Pack 2 CD in the CD-ROM drive and
continue to Step 2. If you do not have this disc, you can download
SQL2KSP2.exe from http://www.microsoft.com/downloads and then search
on SQL Server 2000. If you are using SQL2KSP2.exe, then you need to do
the following:
.a Run SQL2KSP2.exe.
.b In the Installation Folder dialog box, click Finish.
.c In the PackageForTheWeb dialog box, click Yes.
.d In the PackageForTheWeb dialog box, click OK.
Note
Task Summary
Install Visual Studio .NET
with all defaults, except do
Error! No text of specified style in document. not install Microsoft Visual
C++® .NET. Then set the
documentation to run from
the Local Path.

.2 Run setup.bat. If you are not using the CD, run setup.bat from the
C:\sql2ksp2\ folder.
.3 In the Welcome dialog box, click Next.
.4 In the Software License Agreement dialog box, click Yes.
.5 In the Instance Name dialog box, click Next.
.6 In the Connect to Server dialog box, click Next.
.7 In the Start Copying Files dialog box, click Next.
.8 In the Setup dialog box, click OK.
.9 In the Setup Complete dialog box, click Finish.

 To start the SQL Server Service


.1 Click Start, click All Programs, click Microsoft SQL Server, and then
click Service Manager.
.2 In the Server drop-down list box, select your computer name.
.3 Click Start/Continue.
.4 Close SQL Server Service Manager.

8. Install Visual Studio .NET


 Start install of Visual Studio .NET
.1 Insert the Visual Studio .NET compact disc 1 into the CD-ROM drive.

Whenever you insert a Visual Studio .NET compact disc, except for compact
disc 1, Windows XP Professional displays a pop-up dialog box that provides
you with choices of actions that Windows can perform, such as "Take no
action" or "Always do the selected." You should always click Cancel when
this dialog box is displayed.

.2 In the Visual Studio .NET Setup dialog box, click Windows Component
Update.
.3 When prompted, enter the CD-ROM drive letter. Remove compact disc 1
and insert the Windows Component Update disc into the CD-ROM drive.
Click OK.
.4 When prompted, select I accept the agreement, and then click Continue.
.5 In the Visual Studio .NET Windows Component Update Setup dialog
box, click Install Now.
.6 After Windows Component Update has been installed, click Done.
.7 In the Visual Studio .NET Setup dialog box, click Visual Studio .NET.
.8 When prompted, enter the CD-ROM drive letter. Remove the Windows
Component Update compact disc, insert the Visual Studio .NET compact
disc 1, and then click OK.
.9 When prompted, select I accept the agreement, enter any Product Keys,
and then click Continue.
Error! No text of specified style in document. 9

.10 In Options to Install section:


.a Expand Language Tools, and then clear the Visual C++ .NET check
box.
.b Clear the SQL Server Desktop Engine check box.
.c Click Install Now.
.11 When prompted, remove compact disc 1 and then insert the Visual Studio
.NET compact disc 2. Click OK.
.12 When prompted, remove compact disc 2 and insert the Visual Studio .NET
compact disc 3. Click OK.
.13 When prompted, remove compact disc 3 and insert the Visual Studio .NET
compact disc 4. Click OK.
.14 In the Setup is complete dialog box, click Done.
.15 In the Visual Studio .NET Setup dialog box, click Exit.

9. Install the Microsoft .NET Framework Service


Pack 1
 Install the Microsoft .NET Framework Service Pack 1
.1 Download the.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.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 When prompted to restart your system, click Yes.

10. Configure Visual Studio .NET to display


bigger fonts
 Configure Visual Studio .NET
.1 Run Visual Studio .NET from the Start menu.
.2 On the Tools menu, click Options.
.3 In the Options dialog box, in the Environment folder, click Fonts and
Colors.
.4 Click 16 in the Size list box.
.5 Click OK.
.6 Close Visual Studio .NET.
Note
Task Summary
Install the
lab, lab
demonstration,
databases by
and practice
running restore2310DB.sql
files by running
Error! No text of specified style in document. Allfiles.exe.
SQL script.

11. Install lab, demonstration, and practice files


 Install Lab, demonstration, and practice files
.1 Insert the Trainer Materials compact disc into the CD-ROM drive.
.2 Open the StudentCD\Webfiles\Downloads folder on the Trainer Materials
compact disc.
.3 Run Allfiles.exe, which is a self-extracting file.
.4 Install all of the files to their default locations.

By default, course files are installed to the following locations:


 Labs are installed to C:\Program Files\Msdntrain\2310\Labfiles
 Demonstration files are installed to C:\Program
Files\Msdntrain\2310\Democode
 Practice files are installed to C:\Program Files\Msdntrain\2310\Practices

12. Install and configure SQL Server databases


There are three databases that are used in the labs for this course. All three
databases can be restored by running one SQL script.
.1 On the Start menu, click All Programs, click Microsoft SQL Server, and
then click Enterprise Manager.
.2 On the toolbar, click Tools, and then click SQL Query Analyzer.
.3 In the Connect to SQL Server dialog box, type (local) in the SQL Server
box, click Start SQL Server if it is stopped, click Windows
Authentication, and then click OK.
.4 On the toolbar, click File, and then click Open.
.5 In the Open Query File dialog box, in the File name box, type
C:\Program Files\Msdntrain\2310\Labfiles\Database\restore2310DB.sql
and then click Open.
.6 On the toolbar, click Query, and then click Execute.
.7 Close SQL Query Analyzer.
.8 Close SQL Server Enterprise Manager.

13. Configure Microsoft Internet Explorer


.1 Open Internet Explorer.
.2 Complete the wizard by using the settings that are appropriate to your
location. It is not necessary to set up an Internet e-mail account.
.3 On the View menu, point to Text Size, and then click Larger.
.4 Close Internet Explorer.
Error! No text of specified style in document. 11

14. Create demonstration and lab Web


applications
.1 Copy the Modx, ModxCS, and ModxVB folders (where x is a module
number), except the Mod06VB and Mod06CS folders, from the C:\Program
Files\Msdntrain\2310\Democode folder to the C:\Inetpub\wwwroot folder.
.2 Copy the CallClassVB, CSharpClassLibrary, ShippingVB, and
VBClassLibrary folders from the C:\Program
Files\Msdntrain\2310\Democode\Mod06VB folder to the
C:\Inetpub\wwwroot folder.
.3 Copy the CallClassCS and ShippingCS folders from the C:\Program
Files\Msdntrain\2310\Democode\Mod06CS folder to the
C:\Inetpub\wwwroot folder.
.4 Create a Visual Studio Projects folder in the C:\Documents and
Settings\user account\My Documents folder.
.5 Create a new folder named Lab15VB in the C:\Inetpub\wwwroot folder.
.6 Create a new folder named Lab15CS in the C:\Inetpub\wwwroot folder.
.7 Copy the C:\Program Files\Msdntrain\2310\Democode\2310Demos folder
to the C:\Documents and Settings\user account\My Documents\Visual
Studio Projects folder.
.8 On the Start menu, right-click My Computer, and then click Manage.
.9 In the Computer Management console, expand Services and
Applications, then expand Internet Information Services, then expand
Web Sites, and then expand Default Web Site.
.10 Perform the following steps for each of the following folders: Mod05VB,
Mod05CS, Mod07VB, Mod07CS, Mod08VB, Mod08CS, Mod09VB,
Mod09CS, Mod10VB, Mod10CS, Mod11VB, Mod11CS, Mod12VB,
Mod12CS, Mod13VB, Mod13CS, Mod14VB, Mod14CS, Mod15VB,
Mod15CS, Mod16VB, Mod16CS, CallClassVB, CallClassCS ,
ShippingVB, ShippingCS, Lab15VB, and Lab15CS:
.a Right-click on the folder and click Properties.
.b In the Properties dialog box, on the Directory tab, click Create in the
Application Settings section.
.c Click OK.
.11 Close Computer Management Console.

15. Set the folder options to show operating


system files and hidden files
.1 Click the Start button, and then click My Computer.
.2 On the Tools menu, click Folder Options.
.3 In the Folder Options dialog box, click the View tab.
.4 Under Advanced settings, in the Hidden files and folders branch, click
Show hidden files and folders.
.5 Clear the Hide extensions for known file types check box.
Task Summary
Install the
courseware
Flash 5.0fonts
plug-in
by
running
by runningFonts.exe.
Flash5A.exe.
Error! No text of specified style in document.

.6 Clear the Hide protected operating system files check box. When
prompted, click Yes.
.7 Click the Apply to All Folders button. When prompted, click Yes.
.8 To close the Folder Options dialog box, click OK.
.9 Close the My Computer window.

16. Install Courseware Fonts


.1 On the Trainer Materials compact disc, in the Tools folder, double-click
Fonts.exe.
.2 In the Courseware Fonts dialog box, click Yes to install the fonts.
.3 When installation is complete, click OK.

17. Install the Macromedia Flash 5.0 Plug-in


.1 On the Trainer Materials compact disc, in the StudentCD\Flash folder,
double-click Flash5A.exe.
.2 In the Flash 5 ActiveX Control Installer dialog box, click Yes to install the
control.
.3 When installation is complete, click OK.

18. Install PowerPoint


 Install PowerPoint from Microsoft Office XP Professional with
FrontPage
.1 Insert the Microsoft Office XP Professional with Microsoft FrontPage ®
compact disc into the CD-ROM drive.
The Office XP Setup Wizard opens.
.2 On the User information page, accept the default settings that are provided,
type the product key for your copy of Office XP Professional with
FrontPage, and then click Next.
.3 On the End-User License Agreement page, if you agree with the terms,
select the I accept the terms in the License Agreement check box, and
then click Next.
.4 On the Choose the type of installation you need page, click Custom, and
then click Next.
.5 On the Choose which applications for setup to install page, make certain
that Microsoft PowerPoint is the only application selected, and then click
Next.
.6 On the Begin installation page, click Install.
.7 Type in your Username and click OK.
.8 In the Microsoft Office XP Professional with FrontPage has completed
successfully message box, click OK.

 Activate Office XP
Caution
Note
Important
Task Summary
Install PowerPoint slides by
running 2310_ppt.msi.
Error! No text of specified style in document. 13

.1 Click Start, point to All Programs, and then click Microsoft PowerPoint.
.2 On the Welcome to the Microsoft Office Activation Wizard page of the
Microsoft Office XP Professional with FrontPage Activation Wizard,
click Next.
.3 On the Welcome to the Microsoft Office Activation Wizard, Microsoft
Office Privacy Policy page, click Next.
.4 On the Customer Information page, in the Country/Region list, select
your location and then click Next.
.5 On the Special Offers page, click Submit.
.6 On the Activation Complete page, click Finish.
.7 Exit PowerPoint.

19. Install the PowerPoint Slides


 On the Trainer Materials compact disc, in the Tools folder, double-click
2310_ppt.msi.

By default, Instructor PowerPoint slides are installed in the


C:\Program Files\Msdntrain\2310\Powerpnt folder and are available in the
list of programs on the Start menu.

20. 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 Project Types list, click Visual Basic Projects. In the Templates
list click ASP.NET Web Application. 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.

 Update the BenefitsVB project


Caution

Error! No text of specified style in document.

.1 In Solution Explorer, right-click BenefitsVB, point to Add, and then click


Add Existing Item.
.2 Browse to the c:\Program
Files\msdntrain\2310\Labfiles\Lab16\VB\Solution\BenefitsVB folder.
.3 In the Files of type box of the Add Existing Item – BenefitsVB dialog box,
choose All Files (*.*).
.4 Select all of the files in this folder, and then click Open.
.5 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 Project Types list, click Visual Basic Projects. In the Templates
list click Class Library. 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 Solution Explorer, right-click BenefitsListVB, point to Add, and then
click Add Existing Item.
.2 Browse to the c:\Program
Files\msdntrain\2310\Labfiles\Lab16\VB\Solution\BenefitsListVB folder.
.3 In the Files of type box of the Add Existing Item – BenefitsListVB dialog
box, choose All Files (*.*).
.4 Select all of the files in this folder, and then click Open.
.5 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.

 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


Caution

Error! No text of specified style in document. 15

.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 Project Types list, click Visual Basic Projects. In the Templates
list click ASP.NET Web Service. 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 Solution Explorer, right-click DentalServiceVB, point to Add, and then
click Add Existing Item.
.2 Browse to the c:\Program
Files\msdntrain\2310\Labfiles\Lab16\VB\Solution\DentalServiceVB folder.
.3 In the Files of type box of the Add Existing Item – DentalServiceVB
dialog box, choose All Files (*.*).
.4 Select all of the files in this folder, and then click Open.
.5 Click Yes to replace any existing files and to create new files, and then click
Yes to reload any open files.
.6 Build the DentalService XML Web service by right-clicking the
DentalServiceVB project in Solution Explorer and clicking Build.

 Add a Web reference in the BenefitsVB project to the DentalServiceVB


Web service
.1 In the BenefitsVB project in the 2310LabApplication solution, complete the
following steps to add a Web reference to the DentalServiceVB XML Web
service:
.a In Solution Explorer, right-click BenefitsVB and then click Add Web
Reference.
.b In the Address text box, type
http://localhost/DentalServiceVB/DentalService1.asmx and then press
ENTER.
The DentalService1 Web reference will then be displayed.
.c Click Add Reference.
The Web reference is added to the project in the Web References folder.
.2 In Solution Explorer, expand Web References, right-click localhost and
then choose Rename.
.3 Type DentalWebRef and then press ENTER.
.4 Build the solution by clicking Build Solution on the Build menu.

 Create the C# Benefits Web application


.1 Create a new ASP.NET Web Application project, named BenefitsCS, in the
2310LabApplication solution:
.a On the File menu, click New, and then click Project.
Caution

Error! No text of specified style in document.

.b In the Project Types list, click Visual C# Projects. In the Templates


list click ASP.NET Web Application. Set the Location to
http://localhost/BenefitsCS, click Add to Solution, and then click OK.

Verify that you have capitalized the BenefitsCS project as shown.

 Update the BenefitsCS project


.1 In Solution Explorer, right-click BenefitsCS, point to Add, and then click
Add Existing Item.
.2 Browse to the c:\Program
Files\msdntrain\2310\Labfiles\Lab16\CS\Solution\BenefitsCS folder.
.3 In the Files of type box of the Add Existing Item – BenefitsCS dialog box,
choose All Files (*.*).
.4 Select all of the files in this folder, and then click Open.
.5 Click Yes to replace any existing files and to create new files.

 Create the Visual C# .NET BenefitsListCS class library


.2 Create a new C#™ Class Library project, name it BenefitsListCS, and then
add it to the 2310LabApplication solution:
.a On the File menu, click New, and then click Project.
.b In the Project Types list, click Visual C# Projects. In the Templates
list click Class Library. Set the Name to BenefitsListCS, click Add to
Solution, and then click OK.

Verify that you have capitalized the BenefitsListCS project as shown.

 Update the BenefitsListCS project


.1 In Solution Explorer, right-click BenefitsListCS, point to Add, and then
click Add Existing Item.
.2 Browse to the c:\Program
Files\msdntrain\2310\Labfiles\Lab16\CS\Solution\BenefitsListCS folder.
.3 In the Files of type box of the Add Existing Item – BenefitsListCS dialog
box, choose All Files (*.*).
.4 Select all of the files in this folder, and then click Open.
.5 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.cs file.

 Create a reference to the BenefitsListCS component in the BenefitsCS


project
.3 In the BenefitsCS project in the 2310LabApplication solution, complete
the following steps to add a reference to the BenefitsListCS component that
you just created:
.a Right-click the BenefitsCS project in Solution Explorer and then click
Add Reference.
Caution

Error! No text of specified style in document. 17

.b In the Add Reference dialog box, on the Projects tab, double-click the
BenefitsListCS project.
.c In the Selected Components list, select the BenefitsListCS component,
and then click OK.
The component is added to the References folder in Solution Explorer.

 Create the Visual C# .NET Dental XML Web Service


.1 Create a new Visual Basic .NET ASP.NET Web Service project, named
DentalServiceCS, and then add it to the 2310LabApplication solution:
.a On the File menu, click New, and then click Project.
.b In the Project Types list, click Visual C# Projects. In the Templates
list click ASP.NET Web Service. Set the Location to
http://localhost/DentalServiceCS, click Add to Solution, and then
click OK.

Verify that you have capitalized the DentalServiceCS project as shown.

 Update the DentalServiceCS project


.1 In Solution Explorer, right-click DentalServiceCS, point to Add, and then
click Add Existing Item.
.2 Browse to the c:\Program
Files\msdntrain\2310\Labfiles\Lab16\CS\Solution\DentalServiceCS folder.
.3 In the Files of type box of the Add Existing Item – DentalServiceCS
dialog box, choose All Files (*.*).
.4 Select all of the files in this folder, and then click Open.
.5 If prompted, Click Yes to replace any existing files and to create new files,
and then click Yes to reload any open files.
.6 Build the DentalService XML Web service by right-clicking the
DentalServiceCS project in Solution Explorer and clicking Build.

 Add a Web reference in the BenefitsCS project to the DentalServiceCS


Web service
.1 In the BenefitsCS project in the 2310LabApplication solution, complete the
following steps to add a Web reference to the DentalServiceCS XML Web
service:
.a In Solution Explorer, right-click BenefitsCS and then click Add Web
Reference.
.b In the Address text box, type
http://localhost/DentalServiceCS/DentalService1.asmx and then press
ENTER.
The DentalService1 Web reference will then be displayed.
.c Click Add Reference.
The Web reference is added to the project in the Web References folder.
.2 In Solution Explorer, expand Web References, right-click localhost, and
then choose Rename.
Note

Error! No text of specified style in document.

.3 Type DentalWebRef and then press ENTER.


.4 Build the solution by clicking Build Solution on the Build menu.
.5 Close Visual Studio .NET

 Install and configure the session state databases


.1 From the Start menu, point to All Programs, point to Accessories, and
then click Command Prompt.
A Command window opens.
.2 At the command prompt, type the following command, where version is the
latest version of the.NET Framework that is installed on your computer, and
then press ENTER:
cd\WINDOWS\Microsoft.NET\Framework\version\

The Command prompt changes to the new directory.


.3 At the command prompt, type the following command, and then press
ENTER:
OSQL –S localhost –E <InstallSqlState.sql

In the preceding command, capitalization matters. Be sure the -S and -E are


capitol letters.

The command window displays a series of numbers and messages, and then
returns to the command prompt. The ASPState and tempdb databases have
been restored.
.4 Close the command prompt, and then open Windows Explorer.
.5 Browse to the following directory:
C:\Program Files\MSDNTrain\2310\LabFiles\Lab16\VB\Starter
.6 Double-click Lab16.bat.
This batch file runs an SQL query that configures security for the ASPState
and tempdb databases.
.7 Close Windows Explorer.

21. Test the Setup


 Verify database installation
.1 From the Start menu, point to All Programs, point to Microsoft SQL
Server, and then click Enterprise Manager.
.2 Expand Microsoft SQL Servers, expand SQL Server Group, expand
(local) (Windows NT), and then expand Databases.
.3 Verify that the databases in the following table are listed in the Databases
folder.
Instructor computer Student computers

ASPState Coho
Coho dentists
Note
Important

Error! No text of specified style in document. 19

dentists doctors
doctors Northwind
Northwind pubs
pubs None
tempdb None

Additional databases may be installed. Installing additional databases is not a


problem as long as the databases listed in the preceding table are present.

.4 Expand Doctors, and then select Users.


.5 Verify that the webuser account exists and has a login name of
LONDON\ASPNET.
.6 Close Enterprise Manager.

 Test the Visual Basic .NET Final Solution

This section must be completed on the Instructor computer only. When setting
up student computers, do not perform these steps.

.1 Open Internet Explorer.


.2 Type the following Web address in the address box, and then press ENTER:
http://localhost/BenefitsVB/default.aspx
You should see the login page for the Web application.
.3 Close Internet Explorer.

 Test the Visual C# .NET Final Solution

This section must be completed on the Instructor computer only. When setting
up student computers, do not perform these steps.

.1 Open Internet Explorer.


.2 Type the following Web address in the address box, and then press ENTER:
http://localhost/BenefitsCS/default.aspx
You should see the login page for the Web application.
.3 Close Internet Explorer.

 Rebuild the Demonstrations Solution

This section must be completed on the Instructor computer only. When setting
up student computers, do not perform these steps.

.1 From the Start menu, point to All Programs, point to Microsoft Visual
Studio .NET, and then click Microsoft Visual Studio .NET.
.2 From the File menu, choose Open Solution.
Important

Error! No text of specified style in document.

.3 In the My Documents\Visual Studio Projects\2310Demos folder, open the


2310Demos.sln file.
.4 In Solution Explorer, right-click Solution ‘2310Demos’, and then choose
Rebuild Solution.
All of the projects in the solution are rebuilt.
.5 Verify there are no errors in the Task List window.
.6 Close Visual Studio .NET.

Student Computer Checklist


The setup procedures for student computers are the same as that of the
Instructor computer, except that the setup for the instructor computer involves
the following additional tasks: installation of PowerPoint, PowerPoint slides,
courseware fonts; configuration of Internet Explorer for optimal presentation,
configuration of Visual Studio .NET to display bigger fonts, configuration of
the Lab solution, and verification of installation.

Do not perform Instructor computer setup Steps 20 or 21 on the student


machines. These steps must only be performed on the Instructor machine.

 1. Set up the hardware


 2. Install Windows XP Professional
 3 . Configure Windows XP Professional
 4. Add Internet Information Services
 5. Set the video display
 6. Install SQL Server 2000 Developer Edition
 7. Install SQL Server 2000 Service Pack 2
 8. Install Visual Studio .NET
 9. Install the .NET Framework Service Pack 1
 10. Install lab, demonstration, and practice files
 11. Install SQL Server databases
 12. Configure Internet Explorer
 13. Create demonstration and lab solution Web applications
 14. Set the folder options to show operating system files and hidden
files
 15. Install the Macromedia Flash 5.0 Plug-in
Note
Task Summary
Set up the computer with
one partition at least 12 GB
Error! No text of specified style in document.
in size formatted with the 21
FAT32 file system.

Student Computers
To set up the classroom manually, use the instructions in the Instructor
Computer (London) section for the procedures that are listed in the Student
Computer Checklist section.

1. Set Up the Hardware


.1 Set up the hardware according to the manufacturer’s instructions. (Refer to
the hardware requirements.)

If necessary, configure your computer so that it starts from the hard disk and
then from the CD-ROM drive.

.2 Configure the hard disk with one partition of at least 12 Gigabytes,


formatted as Fat32.
Error! No text of specified style in document.

Appendix: 2002 Hardware Levels


Hardware Level 1
 Pentium II 400 MHz (Megahertz)
 PCI 2.1 bus
 256 megabytes (MB) of RAM
 8-gigabyte (GB) hard disk
 256-kilobyte (KB) L2 cache
 DVD player
 Non-ISA network adapter (10/100 megabits per second (Mbps) required)
 4-MB video adapter
 Super VGA (SVGA) monitor (17 inch)
 Microsoft Mouse or compatible pointing device
 Sound card with headphones or speakers

Hardware Level 2
 Pentium II 450 MHz
 PCI 2.1 bus
 512 MB of RAM
 12-GB hard disk
 512-KB L2 cache
 DVD player
 Non-ISA network adapter (10/100 Mbps required)
 4-MB video adapter
 SVGA monitor (17 inch)
 Microsoft Mouse or compatible pointing device
 Sound card with speakers
 Internet access
 Projection display device that supports SVGA 800x600, 256-colors

Hardware Level 3
 Pentium III 700 MHz
 PCI 2.1 bus
 768 MB of RAM
 16-GB hard disk
 512-KB L2 cache
 DVD player
 Non-ISA network adapter (10/100 Mbps full duplex required)
 4-MB video adapter
Error! No text of specified style in document. 23

 SVGA monitor (17 inch)


 Microsoft Mouse or compatible pointing device
 Sound card with amplified speakers
 Internet access
 Projection display device that supports SVGA 800x600, 256-colors

Hardware Level 4
 Pentium III 1 GHz (Gigahertz)
 PCI 2.1 bus
 1 GB of RAM
 18-GB hard disk
 512-KB L2 cache
 DVD player
 Non-ISA network adapter (10/100 Mbps full duplex required)
 4-MB video adapter
 SVGA monitor (17 inch)
 Microsoft Mouse or compatible pointing device
 Sound card with amplified speakers
 Internet access
 Projection display device that supports SVGA 800x600, 256-colors

Você também pode gostar