Lucene.Net
  1. Lucene.Net
  2. LUCENENET-500

Lucene fails to run in medium trust ASP.NET Application

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Lucene.Net 3.0.3
    • Fix Version/s: Lucene.Net 3.0.3
    • Component/s: Lucene.Net Core
    • Labels:
      None

      Description

      I'm having trouble upgrading a web application running under medium trust from 2.9.4 to 3.0.3. Code that previously worked now throws a SecurityException.

      [SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
      Lucene.Net.Support.WeakKey`1..ctor(T key) +0
      Lucene.Net.Support.WeakDictionary`2.get_Item(TKey key) +113
      Lucene.Net.Util.DefaultAttributeFactory.GetClassForInterface() +178
      Lucene.Net.Util.DefaultAttributeFactory.CreateAttributeInstance() +95
      Lucene.Net.Util.AttributeSource.AddAttribute() +375
      Lucene.Net.Analysis.CharTokenizer..ctor(TextReader input) +126
      Lucene.Net.Analysis.WhitespaceTokenizer..ctor(TextReader in) +37

      1. VerifyableAssemblyNET35.zip
        866 kB
        Christopher Currens
      2. contrib.zip
        826 kB
        Christopher Currens

        Activity

        Simon Svensson created issue -
        Christopher Currens made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Christopher Currens made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Christopher Currens made changes -
        Status Reopened [ 4 ] In Progress [ 3 ]
        Christopher Currens made changes -
        Attachment MediumTrustFixNET35.zip [ 12570023 ]
        Christopher Currens made changes -
        Attachment MediumTrustFixNET35.zip [ 12570023 ]
        Christopher Currens made changes -
        Attachment VerifyableAssemblyNET35.zip [ 12570179 ]
        Christopher Currens made changes -
        Attachment contrib.zip [ 12570192 ]
        Christopher Currens made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Christopher Currens
            Reporter:
            Simon Svensson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development