[SPRNET-1374] Support for Partial Trust under .NET 4 (native compilation) Created: 25/Sep/10  Updated: 13/Aug/12

Status: Open
Project: Spring.NET
Component/s: Spring-NET-AOP, Spring-NET-CORE, Spring-NET-DA, Spring-NET-MSG, Spring-NET-NH, Spring-NET-SCHEDULING, Spring-NET-SERVICES, Spring-NET-TESTING, Spring-NET-TX, Spring-NET-WEB, Spring-NET-WEBMVC
Affects Version/s: 1.3.0
Fix Version/s: 2.0

Type: New Feature Priority: Minor
Reporter: Steve Bohlen Assignee: Steve Bohlen
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Changes to the CLR Security Model (and related changes to attributes applied to various interfaces and classes in the .NET Base Class Library) under .NET 4 mean that Spring.NET support for partial trust when compiled targeting .NET 4 'native' assemblies will require significant changes to security demands within the Spring.NET codebase.

Example articles, forum posts, etc. that begin to describe the scope of the challenges just with the (relatively) simple case of the Spring.NET-specific exceptions implementations are as follows:

http://social.msdn.microsoft.com/Forums/en/clr/thread/8261ec32-cda0-4863-92fe-4121c6d22d22
http://msdn.microsoft.com/en-us/library/system.runtime.serialization.isafeserializationdata.aspx

...though the problem with the modified security model under .NET 4 extends to well beyond just the changes to ISerializable and its impact on Spring.NET exceptions.



 Comments   
Comment by Steve Bohlen [ 28/Sep/10 ]

More reference links:

http://msdn.microsoft.com/en-us/magazine/ee336023.aspx

http://msdn.microsoft.com/en-us/library/system.security.allowpartiallytrustedcallersattribute.aspx

http://blogs.msdn.com/b/shawnfa/archive/2009/11/12/differences-between-the-security-rule-sets.aspx

Generated at Tue Sep 17 23:28:15 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.