ProjectTrackAw Client Application (Chapter 10)

The ProjectTrackAw Client application in Chapter 10 references the ProjectTrackAw component from Chapter 7. That component, in turn, references the ProjectTrack_Data.mdf database file. When you move programs with databases from one computer to another, the connections (paths between applications and their databases) always break.

After copying the book's examples to your hard drive, you can do the following to make the ProjectTrackAw Client application work correctly. For this excercise, we will create a new folder named c:\temp and put everything inside:

1. Copy the ProjectTrackAw directory, along with ProjectTrack_Data.MDF from the Chapter 7 examples folder to c:\temp.

2. Copy the ProjectTrackAw Client folder from the Chapter 10 examples to c:\temp.

3. Open the ProjectTrackAw project in the Chapter 7 examples and make sure it connects to the ProjectTrack_Data.mdf database file. To do this, right-click the project name in Solution Explorer, select Properties, select the Settings tab, click inside the Value column of the ProjectTrackConnectionString entry,and locate the ProjectTrack_Data.mdf file in c:\temp. Click OK to save your changes. Build the project, then save the project.

4. Open the ProjectTrackAw Client Web site, located in the c:\temp folder. Right click the project name in the Solution explorer window, select Add Reference, select the Browse tab, and navigate to the ProjectTrackAw.dll file in the c:\temp\ProjectTrackAw\bin\Debug folder. Click OK, and if a dialog asks you to replace files already in the project, answer Yes.

5. Run the ProjectTrackAw Client application. You should be able to log in with the sbaker username, and display projects in the GridView control.