Free cookie consent management tool by TermsFeed Policy Generator

Opened 14 years ago

Closed 14 years ago

#1376 closed defect (done)

PersistenceException: security transparent 'DynamicClass.()' cannot access security critical methods

Reported by: epitzer Owned by: swagner
Priority: highest Milestone: HeuristicLab 3.3.3
Component: Persistence Version: 3.3.3
Keywords: Cc:

Description

TypeAccessException: Attempt by security transparent method 'DynamicClass.()' to access security critical type 'HeuristicLab.Optimization.ISelector' failed.

Assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.
   at ()
   at HeuristicLab.Persistence.Default.CompositeSerializers.Storable.StorableSerializer.CreateInstance(Type type, IEnumerable`1 metaInfo)
   at HeuristicLab.Persistence.Core.Deserializer.Midwife.CreateInstance()
   at HeuristicLab.Persistence.Core.Deserializer.CreateInstance(Midwife m)
   at HeuristicLab.Persistence.Core.Deserializer.CompositeEndHandler(EndToken token)
   at HeuristicLab.Persistence.Core.Deserializer.Deserialize(IEnumerable`1 tokens)
   at HeuristicLab.Persistence.Default.Xml.XmlParser.Deserialize(ZipFile zipFile) }}}

Change History (5)

comment:1 Changed 14 years ago by epitzer

  • Status changed from new to accepted

comment:2 Changed 14 years ago by epitzer

Disable visibility checks for dynamic methods. (r5292)

comment:3 Changed 14 years ago by epitzer

  • Owner changed from epitzer to gkronber
  • Status changed from accepted to reviewing

comment:4 Changed 14 years ago by gkronber

  • Owner changed from gkronber to swagner
  • Status changed from reviewing to readytorelease

Works for me now. Thanks for the bug fix.

comment:5 Changed 14 years ago by mkommend

  • Resolution set to done
  • Status changed from readytorelease to closed
  • Version changed from 3.3.2 to 3.3.3
Note: See TracTickets for help on using tickets.