Security Block with ASP.NET Role Provider

Topics: Security Application Block
Aug 11, 2011 at 12:07 PM


I've a WCF Service which uses aspNetRoleProvider for authorization.  The problem with my curret approach is that I need to declaritive put an  [PrinciplePermission.........] attribute.  If the requirement changes i need to update the code , compile and deploy.

I'm wondering if Ent Lib Security Block solves the above problem by extracting the configuration. e.g. Operation Name and Role name so that I just have to change config files. Could anyone please advice how to achieve this in Ent Lib 5.0


Aug 12, 2011 at 2:35 AM

Has anyone implemented the above? Any suggetions will be appreciated.

Aug 12, 2011 at 7:47 AM
Edited Aug 12, 2011 at 7:54 AM

Yes, that is where the Security Block is designed for. I recommend you to take a look on the implementation of Security Application block on Enterprise Library Hands On Labs. You can check the End Solution on Exercise # 2 under the Security Application Block. Hope this helps :)


Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.
Contact Us