Enterprise Library 2.0 hands on Lab translation (13): Secure Application Block (ii)

Source: Internet
Author: User
Tags config visual studio

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.