Installing the Training Management Application

This topic includes procedures that explain how to install the Contoso Training Management application. The first procedure describes the steps you must complete in Visual Studio. The second procedure describes the steps you must complete in SharePoint and in the operating system to configure the SharePoint Web site and create the local users. The last procedure describes how to use SharePoint to associate the workflow with the registration list.

You must have administrative privileges for both the SharePoint server and the SharePoint site on which you deploy the application.

To build and deploy the Training Management application in Visual Studio

  1. Unzip the SharePoint Guidance self-extracting zip file.
  2. In Visual Studio 2008, open <<Extracted folder>>\Source\TM\Contoso.TrainingManagement.RI \Contoso.TrainingManagement.RI.sln.
  3. Right-click the Contoso.TrainingManagement project, and then click Properties. Click Debug.
  4. Specify the URL of the site collection on which the project will be deployed. The default location is https://localhost.
  5. Right-click the Contoso.TrainingManagement.RI solution, and then click Build Solution.
  6. Right-click the Contoso.TrainingManagement project, and then click Deploy. Make sure that the Contoso.TrainingManagement/pkg folder and the Contoso.TrainingManagement /bin/Debug folder are not read-only.

Note

If you are using User Account Control, you might need to use the Run as Administrator option when you open Visual Studio. Also, you might need to configure the Visual Studio extensions for Windows SharePoint Services Application Pool account to be a member of the Site Collection Administrators group. To configure the account, browse to https://localhost/_layouts/mngsiteadmin.aspx, and then specify the Application Pool account.

The next procedure describes the steps that you must complete in the operating system and in SharePoint.

To configure the Training Management application and create the users

  1. Open a command prompt window, and then run the following Internet Information Services (IIS) command-line utility:

    Iisreset.exe

  2. In Internet Explorer Address bar, enter the URL for your SharePoint server.

  3. Click the Site Actions drop-down box. Click CreateSite. The New SharePoint Site page opens.

  4. In the Title box, type Training Management. In the URL name box, type training. Use the Contoso Training Management site template that is located on the Contoso tab. Click Create to create the site.

  5. In Windows, create two local Windows users named spgmanager and spgemployee.

  6. On the SharePoint site, click the Site Actions tab. Click SiteSettings.

  7. In the Users and Permissions column, click People and groups.

  8. On the People and Groups page, click Groups.

  9. Click the Contoso Employees group, click New, and then type spgemployee.

  10. In the Give Permission section, click Contoso Employees [Read, Limited Access].

  11. Click OK.

  12. Repeat steps 9 through 12 for the Contoso Managers group, typing spgmanager at the end of step 10.

To install the registration approval workflow

  1. In Visual Studio 2008, right-click the Contoso.TrainingManagement.Workflows.RegistrationApproval project, and then click Properties. Click Debug.
  2. Specify the URL of the Training Management site that you created in step 4 of the first procedure.
  3. Right-click the Contoso.TrainingManage.Workflows.RegistrationApproval project, and then click Deploy. Make sure that the Contoso.TrainingManagement.Workflows.RegistrationApproval/pkg folder and Contoso.TrainingManagement.Workflows.RegistrationApproval/bin/Debug folder are not read-only.

Home page on MSDN | Community site