Re: Lucene.Net 3.0.3 and medium trust

2012-08-14 Thread Christopher Currens
I think it's because we use a WeakReference that inherits from WeakReference, which in turn, requires has this security attribute: "SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]". I'm going to test on a machine with a medium trust CAS

Re: Lucene.Net 3.0.3 and medium trust

2012-08-14 Thread Simon Svensson
Hi, It got worse. Building a custom AttributeFactory can only handle a few cases, I needed to subclass _every_ TokenStream/TokenFilter to override all attribute-handling methods (AddAttribute, GetAttribute, etc), and all analyzers to use these streams, to use a dictionary with strong referenc

RE: Lucene.Net 3.0.3 and medium trust

2012-08-14 Thread Prescott Nasser
It'd be nice to understand where this issue is coming from as it wasn't in 2.9.4 rather than jumping to a quick fix imo. I'll dig a bit myself ~P > Date: Tue, 14 Aug 2012 17:32:29 +0200 > From: si...@devhost.se > To: lucene-net-dev@lucene.apache.org > Subject: Re:

Re: Lucene.Net 3.0.3 and medium trust

2012-08-14 Thread Christopher Currens
here this issue is coming from as it wasn't in > 2.9.4 rather than jumping to a quick fix imo. I'll dig a bit myself > ~P > >> Date: Tue, 14 Aug 2012 17:32:29 +0200 >> From: si...@devhost.se >> To: lucene-net-dev@lucene.apache.org >> Subject: Re: Lucene.Net

Re: Lucene.Net 3.0.3 and medium trust

2012-08-14 Thread Christopher Currens
to understand where this issue is coming from as it wasn't in >> 2.9.4 rather than jumping to a quick fix imo. I'll dig a bit myself >> ~P >> >>> Date: Tue, 14 Aug 2012 17:32:29 +0200 >>> From: si...@devhost.se >>> To: lucene-net-dev@lucene.apac

RE: Lucene.Net 3.0.3 and medium trust

2012-08-18 Thread Nicholas Paldino [.NET/C# MVP]
ssage- From: Christopher Currens [mailto:currens.ch...@gmail.com] Sent: Tuesday, August 14, 2012 12:16 PM To: lucene-net-dev@lucene.apache.org Subject: Re: Lucene.Net 3.0.3 and medium trust We should probably try and have unit tests that will spin up medium trust app domains and run some basi

Re: Lucene.Net 3.0.3 and medium trust

2012-08-18 Thread Christopher Currens
ch...@gmail.com] > Sent: Tuesday, August 14, 2012 12:16 PM > To: lucene-net-dev@lucene.apache.org > Subject: Re: Lucene.Net 3.0.3 and medium trust > > We should probably try and have unit tests that will spin up medium trust app > domains and run some basic tests in them, so we