Setup

All the requisites for this lab are verified using the Dependency Checker. To make sure that everything is correctly configured, follow these steps:

  1. Run the Dependency Checker if you have not done so previously. To do this, browse to Source\Setup folder of this lab and double-click the Dependencies.dep file. Install any pre-requisites that are missing (rescanning if necessary) and complete the wizard.

    Note:
    The Configuration Wizard is used for checking dependencies and setting up the environment. If the Configuration Wizard is not installed on your machine, you must install it running the DependencyChecker.msi file located on the %VS2010TKInstallationFolder%\Assets\DependencyChecker folder (e.g. by default the Training Kit is installed under C:\VS2010TrainingKit).

    For convenience, much of the code you will be managing along this lab is available as Visual Studio code snippets. The Dependencies.dep file launches the Visual Studio installer file that installs the code snippets. If you cannot find the snippets when you write the solutions, make sure you installed the code snippets inside Visual Studio 2010 Code Snippets Repository.

    Note:
    This script file creates a persistence database by invoking the SQL scripts included with the .NET Framework. You can also use AppFabric to create persistence databases.

  2. If you are installing Windows Server AppFabric for the first time, you will be prompted to configure it. If you want to reconfigure it later just search for the Configure AppFabric menu shortcut. To configure AppFabric, perform the following steps:
    1. Start Configure AppFabric from the Start menu if it is not already running after installation.
    2. On the Configure Hosting Services page tick the Set monitoring configuration checkbox.
    3. Select the monitoring provider System.Data.SqlClient.
    4. Tick the Set persistence configuration checkbox.
    5. Select the persistence provider sqlStoreProvider.

      Figure 2

      Configuring AppFabric monitoring and persistence stores for SQL Server

    6. Click the Configure button next to the Monitoring provider, and select the following options in the Monitoring Store Configuration Window:
      1. Check Register AppFabric monitoring store in root web.config.
      2. Check Initialize monitoring store.
      3. In the Database field, enter the name of the database to be created for monitoring data, or select an existing database from the list.
    7. Click OK to return to the AppFabric Configuration Wizard.

      Figure 3

      Register and Initialize the monitoring store

    8. Click the Configure button next to the Persistence provider, and select the following options in the Persistence Store Configuration Window:

      1. Check Register AppFabric persistence store in root web.config.
      2. Check Initialize persistence store.
      3. In the Database field, enter the name of the database to be created for persistence data, or select an existing database from the list.
      4. Click OK to return to the AppFabric Configuration Wizard.

      Figure 4

      Register and Initialize the monitoring store

  3. Click the Next button to proceed to the next screen of the wizard.
  4. Uncheck Start Internet Information Services (IIS) Manager.
  5. Click Finish to complete the configuration.

Next Step

Exercise 1: Submit Application Service