Exercise 2: Use role-based authorization in your application
This exercise will learn to use Authorizationprovider to perform role-based authorization in your application.
First step
To hit the BugSmak.sln project, the default installation path should be C:\Program Files\Microsoft Enterprise Library January \begin, and compiled.
Second Step Enterprise Library Configuration Tool
1. Using the Enterprise Library Configuration tool to configure your application, you can open the Configuration tool from the Start menu and select All Programs | Microsoft Patterns and Practices | Enterprise Library | Enterprise Library Configuration, and open app.config file. Or use the tool to open the configuration file directly in Visual Studio.
2. Select the app.config file in Solution Manager and select Open With in the View menu or in the right-click menu ... to open the Openwith dialog box and click the Add button.
3. In the Add Program dialog box, set program name to point to the EntLibConfig.exe file, the default path is C:\Program Files\Microsoft Enterprise Library January 2006\ Bin, set friendly name to Enterprise Library Configuration, click the OK button.
Visual Studio passes the configuration file (app.config) as a command-line argument to EntLibConfig.exe.
4. In the Open With dialog box, select Enterprise Library Configuration and click the OK button.