You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2013/02/14 08:21:25 UTC

svn commit: r1446054 - /logging/log4net/trunk/src/AssemblyInfo.cs

Author: dpsenner
Date: Thu Feb 14 07:21:25 2013
New Revision: 1446054

URL: http://svn.apache.org/r1446054
Log:
LOG4NET-347 fix the AssemblyInfo to allow partial trust applications on .NET 4.0

Modified:
    logging/log4net/trunk/src/AssemblyInfo.cs

Modified: logging/log4net/trunk/src/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/AssemblyInfo.cs?rev=1446054&r1=1446053&r2=1446054&view=diff
==============================================================================
--- logging/log4net/trunk/src/AssemblyInfo.cs (original)
+++ logging/log4net/trunk/src/AssemblyInfo.cs Thu Feb 14 07:21:25 2013
@@ -39,6 +39,14 @@ using System.Runtime.CompilerServices;
 [assembly: System.Security.AllowPartiallyTrustedCallers]
 #endif
 
+#if (NET_4_0)
+//
+// Allows partial trust applications (e.g. ASP.NET shared hosting) on .NET 4.0 to work
+// given our implementation of ISerializable.
+//
+[assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]
+#endif
+
 //
 // General Information about an assembly is controlled through the following 
 // set of attributes. Change these attribute values to modify the information