10 Jul 2012 17:06
[jira] [Created] (LOG4NET-347) Log4net not working in an ASP.Net environment with medium trust
Michele Lepri (JIRA <jira <at> apache.org>
2012-07-10 15:06:34 GMT
2012-07-10 15:06:34 GMT
Michele Lepri created LOG4NET-347:
-------------------------------------
Summary: Log4net not working in an ASP.Net environment with medium trust
Key: LOG4NET-347
URL: https://issues.apache.org/jira/browse/LOG4NET-347
Project: Log4net
Issue Type: Bug
Components: Core
Environment: Asp.Net environment running in medium trust
Reporter: Michele Lepri
As you know, .net 4 security policy are changed and are a lot more strict.
First of all, I'm not an expert about .net 4 security =) and I never
developed web apps for medium trust: this is my fist time.
The problem is simple: log4net doesn't work in medium trust.
the exception is thrown by the [SecurityCritical] Attribute of the
System.Reflection.TargetInvocationException: Exception has been thrown
"GetObjectData" method of ReadOnlyPropertiesDictionary class.
by the target of an invocation. ---> System.TypeLoadException:
Inheritance security rules violated while overriding member:
'log4net.Util.ReadOnlyPropertiesDictionary.GetObjectData(System.Runtim
e.Serialization.SerializationInfo,
System.Runtime.Serialization.StreamingContext)'. Security
accessibility of the overriding method must match the security
(Continue reading)
RSS Feed