2310CK-EN Developing Web Apps VS2008-SetupGuide
2310CK-EN Developing Web Apps VS2008-SetupGuide
By default, the virtual machine will run in a web application in the host computers.
Note: : Pressing CTRL+ALT+DELETE while working with a virtual machine will display
the Windows Security dialog box for the host operating system. To close the dialog
box, press ESC. To access the Windows Security dialog box for a guest operating
system, press HOST+DELETE. Other than this difference, software on a virtual
machine behaves as it would behave on a physical computer.
You can configure virtual machines to communicate with the host computer, other
virtual machines on the same host computer, other host computers, virtual
machines on other host computers, other physical computers on the network, or
any combination thereof.
The setup instructions that you will follow as part of this classroom setup guide
configure Virtual Server and the Virtual Machines that run on the host. Changing
any of the configuration settings may render the labs for this learning product
unusable.
Setup Overview
The host computers must be set up with a supported operating system. For more
information, please look within the following web site:
http://go.microsoft.com/fwlink/?LinkId=94481. For the purposes of this learning
product, it is not necessary for the host computers to be able to communicate with
another network. However, allowing them to communicate with each other is
recommended to make setup easier. The setup procedures below assume that the
host computers can communicate with each other for setup purposes. You should
note the administrator’s user name and password for the host computers, and
provide this information to the instructor.
Important: : It is highly recommended that you read the Partner Deployment Guide
on the Virtual Server page of the Microsoft Certified Trainer (MCT) secure site:
http://go.microsoft.com/fwlink/?LinkId=94482.
It is also strongly recommended that you read the MSL Lab Launcher Getting
Started Guide which is available in the Technical Preparation folder in the MCT
Download Center. This contains information about how to install, customize and
troubleshoot the MSL Lab Launcher in general terms and will be complimentary to
what is contained in this course specific set up guide.
Classroom Requirements
This learning product requires a classroom with a minimum of one computer for
the instructor and one for each student. Before class begins, use the following
information and instructions to install and configure all computers.
Hardware
The classroom computers require the following hardware and software
configuration.
Hardware Level 5
• Pentium IV 2.4-gigahertz (GHz) processor
• PCI 2.1 bus
• 2 gigabyte (GB) of random access memory (RAM)
• 40 GB hard disk, 7200 RPM
• DVD drive
• Non–Industry Standard Architecture (ISA) network adapter: 10/100-megabit-
per-second (Mbps) required full duplex
• 16-MB video adapter (32 MB recommended)
• Super VGA (SVGA) 17-inch monitor
• Microsoft Mouse or compatible pointing device
• Sound card with amplified speakers
• Projection display device that supports SVGA 800 x 600, 256 colors
Software
Please note that, unless otherwise indicated, this software is not included in the
Trainer Materials disc. This learning product was developed and tested on
supported Microsoft software, which is required for the classroom computers.
Required, but not included in the Training Materials, are:
• Supported Microsoft Operating System (details of which can be found within
the following site http://go.microsoft.com/fwlink/?LinkId=94481)
• Microsoft Virtual Server 2005 R2 Sp1
• Microsoft Office PowerPoint® 2003 (This is required for the instructor
computer only)
• .NET™ 2.0 framework (The Microsoft Learning Lab Launcher runs on the
.NET™ 2.0 framework. This framework must be installed on any machine
running the Microsoft Learning Lab Launcher. The .NET 2.0 framework x86
version can be downloaded from
http://go.microsoft.com/fwlink/?LinkId=94622, the x64 version can be
downloaded from here http://go.microsoft.com/fwlink/?LinkId=116636).
• ASP .NET AJAX Control Toolkit (which is required in order to complete some
exercises in the Labs in this course and must be installed on any machine
where these labs will be carried out. This is available from the location
http://go.microsoft.com/fwlink/?LinkID=130389&clcid=0x409 and detailed
install steps are included below.)
Classroom Configuration
Estimated time to set up the classroom: 60 minutes
Microsoft® Virtual Server Classroom Setup Guide 3-5
Note: If Virtual Server 2005 R2 SP1 is already installed, you can skip this procedure.
If you do not have a disk, the software can be downloaded free from Microsoft at
http://go.microsoft.com/fwlink/?LinkId=94483.You may need to go through a
registration process before you can download or run the software.
1. On the Microsoft Virtual Server 2005 R2 SP1 Setup screen, click Install
Microsoft Virtual Server 2005 R2 SP1.
2. In the License Agreement dialog box, select I accept the terms in the license
agreement, and then click Next.
3. In the Customer Information dialog box, enter a User Name, Organization,
and the product key for your version of Virtual Server, and then click Next.
4. On the Setup Type screen, select Complete, and then click Next.
5. On the Configure Components screen, click Next.
6. On the next Configure Components screen, check the box Enable Virtual
Server exceptions in Windows Firewall, and then click Next.
7. On the Ready to Install the Program page, click Install.
8. On the Setup Complete page, click Finish.
9. Close the Installation Summary – Windows Internet Explorer windows.
3-8 2310C: Developing Web Applications Using Microsoft Visual Studio® 2008
Note: Course specific VHD files (excluding Base images) must to be located at
C:\Program Files\Microsoft Learning\2310\Drives. If the files are installed in any
other location, the user will be prompted for the new location of the VHD files.
Note: If installing on a 64 bit platform all course specific vhd files must be installed
to C:\Program Files(x86)\Microsoft Learning\2310\Drives
1. Navigate to the location where you have the MSL base images required for this
course stored. This course requires the MSL base image Base07A.
NOTE: All MSL base images can be downloaded from the MCT Download
Center under Base Virtual Hard Disks in the Courses list.
2. Double-click Base07A.exe.
Microsoft® Virtual Server Classroom Setup Guide 3-9
Running this msi file will copy all the required Lab Launcher files to C:\Program
Files\Microsoft Learning\2310\Data.
15. Once you have run all the MSI and WinRar files you should have the following
files in the C:\Program Files\Microsoft Learning\2310\Drives folder
• 2310C-LON-DEV.vhd
• 2310C-LON-DEV-01.vhd
• 2310C-LON-DEV-02.vhd
• 2310C-LON-DEV-03.vhd
• 2310C-LON-DEV-04.vhd
• 2310C-LON-DEV-05.vhd
• 2310C-LON-DEV-06.vhd
• 2310C-LON-DEV-07.vhd
• 2310C-LON-DEV-08.vhd
• 2310C-LON-DEV-09.vhd
• 2310C-LON-DEV-10.vhd
• 2310C-LON-DEV-11.vhd
• 2310C-LON-DEV-12.vhd
• 2310C-LON-DEV-13.vhd
• 2310C-LON-DEV-14.vhd
• 2310C-LON-DEV-15.vhd
• 2310C-LON-DEV-16.vhd
• 2310C-LON-DEV-Allfiles-01.vhd
• 2310C-LON-DEV-Allfiles-02.vhd
• 2310C-LON-DEV-Allfiles-03.vhd
• 2310C-LON-DEV-Allfiles-04.vhd
• 2310C-LON-DEV-Allfiles-05.vhd
• 2310C-LON-DEV-Allfiles-06.vhd
• 2310C-LON-DEV-Allfiles-07.vhd
• 2310C-LON-DEV-Allfiles-08.vhd
Microsoft® Virtual Server Classroom Setup Guide 3-11
• 2310C-LON-DEV-Allfiles-09.vhd
• 2310C-LON-DEV-Allfiles-10.vhd
• 2310C-LON-DEV-Allfiles-11.vhd
• 2310C-LON-DEV-Allfiles-12.vhd
• 2310C-LON-DEV-Allfiles-13.vhd
• 2310C-LON-DEV-Allfiles-14.vhd
• 2310C-LON-DEV-Allfiles-15.vhd
• 2310C-LON-DEV-Allfiles-16.vhd
16. You should also have the following base image files present in the C:\Program
Files\Microsoft Learning\Base folder
• Base07A.vhd
17. Navigate to C:\Program Files\Microsoft Learning\Base.
18. Press the SHIFT key, right-click the Base07A.vhd files, and then click
Properties.
19. Under Attributes, uncheck the Read-only check box,
20. If installing on Windows Vista®, click the Security tab and ensure that the
Everyone Group has full permissions to the VHD files.
21. Click OK.
22. Navigate to C:\Program Files\Microsoft Learning\2310\Drives.
23. Right-click the 2310-LON-DEV.vhd and then click Properties.
24. Under Attributes, uncheck the Read-only check box, and then click OK.
25. Repeat steps 23 to 24 for the remainder of the vhd files in the \Drives folder
26. Verify that a shortcut to the Microsoft Learning Lab Launcher is now on the
desktop. You must have already installed all MSI and if necessary, WinRar
files, before starting the Microsoft Learning Lab Launcher. Administrative
permission is required in the Windows Vista OS in order to install.
27. Verify the setup by starting the Microsoft Learning Lab Launcher from the
desktop shortcut.
28. The 2310C Lab Launcher Console should appear and in it should be the listed
the 16 VMs required for the labs in this course i.e.
2310C-LON-DEV-01 to 2310C-LON-DEV-16
3-12 2310C: Developing Web Applications Using Microsoft Visual Studio® 2008
Note: In Module 11, in order to complete the Lab Exercise 2, additional files need to
be installed in the virtual machine 2310C-LON-DEV-11. The following steps outline
what files are needed and how they are to be installed. You should install these
additional files on the instructor computer virtual machine first. Then, once
complete, push the updated virtual machine to all student machines. See note at the
end of this section for clarification on this. Also, as a result of steps outlined below,
students will need to carry out additional installation steps in Module 11 Exercise 2
Task 1 when installing the AjaxControlToolkit.dll i.e. they will need to
3) Then in Module 11 Exercise 2 Task 1 continue from Step 1 and in Step 4 select
the appropriate AjaxContrlToolkit.dll file from either E:\Labfiles\Starter\VB or
E:\Labfiles\Starter\CS
Exact details of this are noted in the course error log which is also available in the
MCT Download Center.
Note: This Toolkit release targets two different versions of the .NET Framework
Version 3.5.20229 for .NET Framework 3.5 and Visual Studio 2008: Download the
AjaxControlToolkit-Framework3.5.zip or AjaxControlToolkit-Framework3.5-
NoSource.zip
Version 1.0.20229 for ASP.NET AJAX version 1.0 and .NET Framework 2.0:
Download the AjaxControlToolkit.zip or AjaxControlToolkit-NoSource.zip
Toolkit version 3.5.20229 is only for users who are building on top of .NET
Framework 3.5 using Visual Studio 2008, as is the case on this course. If you are
using .NET Framework 2.0 and Visual Studio 2005 then you should use Toolkit
version 1.0.20229. For more details please refer to the web location
http://go.microsoft.com/fwlink/?LinkID=130573&clcid=0x409
8. In the Windows Explorer window locate the drive on which the 2310C-LON-
DEV-AllFiles-11.vhd is mounted.
9. In Windows Explorer go to then location where downloaded and unpacked
the AjaxControlToolkit-Framework3.5-NoSource files and drag and drop
them in to newly mounted drive at X:\Labfiles\Starter (where X: is the drive
on which it is mounted)
10. Once the files have copied successfully return to the open command prompt
window and type vhdmount /u /c “C:\Program Files\Microsoft
Learning\2310\Drives\ 2310C-LON-DEV-AllFiles-11.vhd”
This will “un-mount” the vhd and commit the changes made to the file.
NOTE: If you have difficulties dis-mounting the vhd ensure the mounted drive
is not in use, you have not got the folders highlighted in explorer, you have
exclusive write access to the vhd, it is not read only and that all Virtual Server
services are started and running successfully.
Also, If you encounter difficulties copying the files using vhdmount there are
alternative methods to get the Ajax Control files into the 2310C-LON-DEV-
AllFiles-11.vhd. You could also burn the Ajax files to DVD or create an iso of
them using an imaging tool. Then, launch the 2310C-LON-DEV-11.vhd using
Virtual Server and add the files into the virtual machine via the Configuration
window in Virtual Server Administration Website. Copy the files to the
correct location, shut down and save the changes.
Note: It is recommended that you start the Lab Launcher on the instructor’s
machine before pushing it out to the students’ machines. This will ensure that:
1. The VHD’s and virtual machine configuration (VMC) files are present and in
their default folder locations.
2. Each virtual machine (VM) is working properly and that no data corruption has
taken place.
Note: You must download the installation file for Adobe Acrobat Reader from
http://www.adobe.com.
1. You must download the installation file for Adobe Acrobat Reader from
http://www.adobe.com
2. Run the installation file from C:\Setup.
Follow the onscreen instructions to install Adobe Acrobat Reader.
Note If Virtual Server 2005 R2 SP1 is already installed, you can skip this procedure..
For detailed instructions, see the Instructor Computer Setup section.
Note Ensure that all files are copied. The following directories and shortcuts will be
needed to ensure that the student has all necessary files to start the Microsoft
Learning Lab Launcher.
4. Ensure that you have copied the files using a permission-retaining software
such as RoboCopy (recommended for Windows Vista OS,) or XCopy.
1. Check that all permissions have been retained, by looking at the directories
above and making sure they are NOT Read Only.
2. Run the Microsoft Learning Lab Launcher on the student machines to verify
working order.
3-18 2310C: Developing Web Applications Using Microsoft Visual Studio® 2008
Appendix A
The virtual machines were developed using the English (United States) layout
shown below.
If your physical keyboard doesn’t match the above layout, you may need to refer to
the above layout for the character positions used to logon. For future logons and
usage throughout the labs, you may want to install your keyboard layout in the
virtual machine.
5. Click OK.
6. In the Regional and Language Options box, under the Advanced tab, under
Default user account settings, select the box to apply the settings to the
current user account and to the default user profile.
7. Click OK to accept the warning
8. Click OK to close the Regional and Language Options box
Appendix B
Potential Issues
1. There is no executable shortcut on the desktop
2. The user receives the error message “An instance of this package is already
running”
Note: Only one instance of the Microsoft Learning Lab Launcher can run at any
time. Ensure the user does not already have a Microsoft Learning Lab Launcher
executable running. If they do not appear to have one running, but still receive this
message, complete the following steps.
a. Open the Task Manager by right-clicking the taskbar, and clicking Task
Manager.
c. Scan the processes tab for a process with the same name as your Microsoft
Learning Lab Launcher executable.
3. The user receives the error message “This application has expired.” or
“Key Validation Error”
4. The user receives the error message “Unable to connect to the local Virtual
Server instance”
b. In order to access virtual machines through Virtual Server, the user must
be an explicit administrator of the Virtual Server instance on the local
machine. Being a member of a group with administrator privileges is often
not sufficient. To correct this error, take the following steps:
ii. Click Start, click All Programs, click Microsoft Virtual Server,
and then click Virtual Server Administration Website.
5. The user receives the error message: “This program requires the .NET
framework v2.0 or higher.” or “Please upgrade your framework and retry.”
a. Ensure that the user is not attempting to run the Microsoft Learning Lab
Launcher over a share, and then continue.
7. The user receives the find file dialog box “Please locate the file [File
Name].vhd”
a. If the user receives this dialog box, it means that one or more of the virtual
machines installed on their machine cannot be found. In this case, it
would be wise to check that all files were copied from the installation
machine to the student machines.
b. Navigate to the VHD file installation location on the local machine, and
then click Open. This step will only need to happen once. After finding the
file, the location of the file will be stored in the LauncherSettings.config
file.
Microsoft® Virtual Server Classroom Setup Guide 3-23
8. The user receives the following error message: “This application requires
read and write access to the following path: [File Path].”
9. Lab Launcher appears in the Task Bar but main console does not display
on the screen
The Lab Launcher ending up off screen when the launcher is minimized and the
host machine is restarted is a known issue. This situation should be handed like
any other windows application being 'disappeared' off screen. To correct this you
should do the following
a. Right-click the Lab Launcher icon in the Task Bar. Or, press alt-space
b. Click Move.
d. Move the mouse to reposition the MSL Lab Launcher wherever you want
it on the screen, or, use the arrow keys to reposition the lab launcher
wherever you want it on the screen.
c. Inside this node, you'll see the sub-node <VmcText>.This is the VmcText
that the VM resets to if the user resets the package (or if virtual machines
haven't been saved through the launcher).
3-24 2310C: Developing Web Applications Using Microsoft Visual Studio® 2008
e. To change the RAM, change that 512 (or whatever it is) to whatever you
like.
11. Need to have base vhd and Differencing vhd files in different locations or
separate physical disks
The Lab Launcher looks in particular folders by default for particular vhd files.
However you may alter this location by physically moving the files you need then
changing the location when the lab launcher is unable to find them and prompts
you for the files. To do this you should do the following.
b. Physically move which ever drives you require to another local mapped
drive,
c. When you start up the lab launcher, it will realize that certain files are
missing, and will ask for the location of those files.
12. Need to copy additional files into virtual machines running in the Lab
Launcher.
Lab Launcher runs on Virtual Server as outlined earlier. To add files in to virtual
machines that are running in the Lab Launcher tool you can do so just as you
would for virtual machines running in Virtual Server. i.e. you can have the files on
CD/DVD or create an iso of the files, then launch Virtual Server, while the Lab
Launcher VM is running, and add the iso to the particular VM through the Virtual
Server console.
a. To launch a virtual machine, click Launch for the machine you wish to
start. It may take a moment for the machine to start.
b. At this point, the virtual machine is starting in the background. When the
virtual machine has started, the VMRC application window will
appear. This application will allow the user to interact with the virtual
machine.
2. The user receives the error message “This application requires write access
to the file [File Name]”
3. The user receives the error message “Not enough memory to start the
virtual machine”
b. If this happens, the user may either close these virtual machines, or un-
pause them through the following steps:
i. Click Start, click All Programs, click Microsoft Virtual Server,
and then click Virtual Server Administration Website.
ii. Enter administrator credentials for the local instance of Virtual
Server.
iii. In the Master Status window, click the drop-down list of the
machine you wish to resume, and then click Resume.
Resetting a machine
• Clicking the Reset button resets the virtual machine to its original state. All
changes made to the virtual machine will be lost. Clicking the Reset All button
resets all of the virtual machines to their original states. In addition, when the
Reset All button is clicked, all virtual machines will revert back to their
preconfigured launch date. When clicking the reset button, the user will
receive the dialog box “Reset Virtual Machine” or “Reset All Virtual Machines”.
b. Turn off and save changes: The machine is turned off, without shutting
down, and all undo-disks are saved for use on the next start-up of the
virtual machine.
c. Turn off machine and discard changes: The virtual machine is turned
off. All changes to the virtual machine and all undo disks are discarded,
returning the virtual machine to its original state.
Note: The Microsoft Learning Lab Launcher uses Undo drives to save changes, so if
these drives are deleted or moved, the Lab Launcher may not be able to restore
previously saved changes. Clicking the Reset button as well as selecting the Turn off
machine and discard changes option will delete the undo drives.
d. After the user has made their selection, they may click OK to close the
virtual machine and apply their choices, or click Cancel to return to the
VMRC and the virtual machine.