Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rafe 21 posts 42 karma points
    Mar 03, 2011 @ 16:18
    Rafe
    0

    Examine Can't Build Index in Med. Trust

    I'm running Umbraco 4.5.2 (.Net 2/3.5 version) as a Rackspace Cloud Site. When I delete all of my index files and restart the web application, I get an exception in the log midway through the new indexes being builts:

    [UmbracoExamine] An error occurred recreating the index set,Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed., IndexSet: PublicIndexSet

    A few notes:

    • Rackspace Cloud Sites run under Medium Trust
    • I'm using user impersonation for my site, so my site is running under the same accoun that originally created/uploaded the folder and files where the examine index lives
    • The site is able to create exa and lck files in the root of my index folder "PublicIndex"
    • There is a "write.lock" file in my /PublicIndex/Index folder - I think this was created before the exception was thrown, but the code had to terminate before it could delete this file to release the lock
    • I've upgraded to the Examine 1.0 RTM binary files - doesn't seem to help
    • I've upgraded to the patched Lucene.Net.dll file that is supposed to run okay in Medium Trust - (see http://umbraco.codeplex.com/workitem/28080)

    Here is my examine config for the index:

    <add name="PublicIndexer" type="UmbracoExamine.LuceneExamineIndexer, UmbracoExamine"
               runAsync="true"
               supportUnpublished="false"
               supportProtected="true"
               interval="10"
               analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"
               indexSet="PublicIndexSet" />

    <add name="PublicSearcher" type="UmbracoExamine.LuceneExamineSearcher, UmbracoExamine"
         analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net" indexSet="PublicIndexSet" />

    <IndexSet SetName="PublicIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/PublicIndex/">
        <IndexAttributeFields>
          <add Name="id" />
          <add Name="nodeName"/>
          <add Name="nodeTypeAlias" />
          <add Name="parentID" />
        </IndexAttributeFields>
        <IndexUserFields>
          <add Name="pageTitle" />
          <add Name="pageDescription" />
          <add Name="pageKeywords" />
        </IndexUserFields>
        <IncludeNodeTypes/>
        <ExcludeNodeTypes>
          <add Name="Image"></add>
          <add Name="Folder"></add>
          <add Name="File"></add>
          <add Name="Media"></add>
          <add Name="BeerContainer"></add>
          <add Name="BeerOnTap"></add>
          <add Name="DistributorContainer"></add>
          <add Name="FeaturedHyperlinkItem"></add>
          <add Name=FeaturedItemContainer"></add>
          <add Name="FeaturedNewsItem"></add>
          <add Name="GlobalMetaType"></add>
          <add Name="LDA"></add>
          <add Name="Picture"></add>
          <add Name="PictureContainer"></add>
          <add Name="Search"></add>
          <add Name="StoreContainer"></add>
        </ExcludeNodeTypes>
      </IndexSet>

     

    ANY SUGGESTIONS OR HELP YOU CAN GIVE ME ARE MUCH APPRECIATED!

    Regards,

  • Rafe 21 posts 42 karma points
    Mar 08, 2011 @ 15:37
    Rafe
    0

    I'm still having this problem. Can any Examine pros help me out here and give me some advice / ideas?

     

    Thanks!

  • marcelh 171 posts 471 karma points
    Mar 17, 2011 @ 23:32
    marcelh
    0

    Same problem here on Umbraco 4.6.1 :(

    This problem also occurs when running Umbraco on my development machine in medium trust...

    Anyone that can point us in the right direction?

  • Rafe 21 posts 42 karma points
    Apr 20, 2011 @ 19:57
    Rafe
    0

    Bump. Both MrHighstone and I still haven't found a solution, or even some advice from anyone in the Umbraco community. Can anyone help us out at all??

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies