bumblebeeC / subtext

Automatically exported from code.google.com/p/subtext
0 stars 0 forks source link

SecurityException in Identicon Handler in Medium Trust #275

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After upgrading to 2.5.2, I've been getting several errors like this in the log:

System.MethodAccessException: 
System.Configuration.KeyValueInternalCollection..ctor(System.Configuration.AppSe
ttingsSection) ---> System.Security.SecurityException: Request failed. at 
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, 
PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, 
SecurityAction action, Object demand, IPermission permThatFailed) at 
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object 
assemblyOrString, PermissionSet granted, PermissionSet refused, 
RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission 
permThatFailed) at 
System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, 
PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object 
assemblyOrString, SecurityAction action, Boolean throwException) at 
System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, 
PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) at 
System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, 
RuntimeMethodHandle rmh) at 
System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, 
PermissionSet grantSet) at 
System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, 
PermissionSet grantSet) at 
System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 
permission, PermissionSet targetGrant, CompressedStack securityContext) at 
System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 
permission, PermissionSet targetGrant, Resolver accessContext) The action that 
failed was: Demand The type of the first permission that failed was: 
System.Security.PermissionSet --- End of inner exception stack trace --- at 
System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IntPtr method) at 
System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType) at 
Ninject.Injection.DynamicMethodInjectorFactory.Create(ConstructorInfo 
constructor) at 
Ninject.Planning.Strategies.ConstructorReflectionStrategy.Execute(IPlan plan) 
at Ninject.Planning.Planner.<>c__DisplayClass1.b__0(IPlanningStrategy s) at 
Ninject.Infrastructure.Language.ExtensionsForIEnumerableOfT.Map[T](IEnumerable`1
 series, Action`1 action) at Ninject.Planning.Planner.GetPlan(Type type) at 
Ninject.Activation.Context.Resolve() at Ninject.KernelBase.b__4(IContext 
context) at System.Linq.Enumerable.<>c__DisplayClass12`3.b__11(TSource x) at 
System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at 
System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) at 
Ninject.Planning.Targets.Target`1.Resolve 

The URL being accessed at the time is the IdenticonHandler. Here are two 
examples:
http://www.paraesthesia.com/images/services/IdenticonHandler.ashx?code=201442017
9
http://www.paraesthesia.com/images/services/IdenticonHandler.ashx?code=-10141767
15

As the exception is code access security related, I'm gathering this is another 
medium trust issue.

Original issue reported on code.google.com by travis.illig on 3 Nov 2010 at 4:25

GoogleCodeExporter commented 8 years ago
Could not repro in the trunk version.

Original comment by haac...@gmail.com on 16 May 2011 at 5:31