Share via


Running the Application

In this lesson, you will install and run your application.

Running the Application

In the previous lesson, you published the application. Next you will install it on your local computer and test it to make sure that it behaves as expected.

To install and test the application

  1. In Windows Explorer, locate the Publish folder in your project folder.

    Tip

    To find your project folder, select the MyFirstApplication node in Solution Explorer and look at the Project Folder property in the Properties window.

  2. Double-click the Setup.exe file.

    The Application Install – Security Warning dialog box appears.

  3. Click Install to install the application.

    After installation is complete, the Northwind application appears and displays a logon screen.

  4. In the User Name box, type admin, in the Password box, type Admin_007, and then click Log In.

    The application appears, and the Orders by Customer screen is displayed.

  5. Click the menu items on the Navigation Menu and open each of the screens. Enter some data and verify that the application behaves exactly as it did when you ran it from the IDE.

Closer Look

In this lesson, you learned how to install and run the application. Now that it is installed, you can run the application again by clicking Northwind Application on the Start menu.

It is a good practice to test the installation and runtime behavior of an application before deploying it to users. When doing this, test it on a computer that has a configuration similar to what you expect users to have. In fact, if you copy the files for the Northwind application and install it on another computer, you will likely find that it does not work. That is expected, because the connection strings that you used are specific to your local computer.

When you opened the Contacts screen, you might have noticed that your contact information is gone. That is also expected; only the database schema for the application database is deployed with the application. In most cases that is what you want, because you have probably entered only test data.

You might have also noticed that the Product screen is not available. You logged in as the administrator, and the administrator role does not have the View Products permission.

If you were even more industrious and clicked the Find button before entering data on the Contacts screen, you discovered that this resulted in an error message. This is a bug, and you should to go back and fix it before giving the application to users.

Next Steps

In the next lesson, you will modify the application and publish a new version.

Next lesson: Changing the Application and Publishing Again

See Also

Concepts

How to: Deploy a 2-tier Application

Other Resources

Distributing Your Application

Deployment: Distributing and Maintaining Your Application