Abstract
Prior to version 4.0, the .NET Framework incorporated two complementary security models that addressed user and code security: role-based security (RBS) and code access security (CAS). With version 4.0, CAS has been deprecated. The previous edition of this book included a number of CAS recipes (11-1 through to 11-7), and we have included them in this new version because of the number of developers still using .NET 3.5 or earlier, where CAS still has a significant function. The C# compiler will show deprecation warnings if you use CAS in a project. You can prevent these errors by targeting your project at an earlier version of the .NET Framework on the Application tab. You can enable CAS in your .NET 4.0 projects with the NetFx40_LegacySecurityPolicy configuration element in the app.config fileāfor example:
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
Ā© 2010 Allen Jones and Adam Freeman
About this chapter
Cite this chapter
Jones, A., Freeman, A. (2010). Security and Cryptography. In: Visual C# 2010 Recipes. Apress. https://doi.org/10.1007/978-1-4302-2526-3_11
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2526-3_11
Publisher Name: Apress
Print ISBN: 978-1-4302-2525-6
Online ISBN: 978-1-4302-2526-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)