Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Oct 06, 2010 @ 16:49
    Ismail Mayat
    0

    Examine config error

    I have download latest rc3 source and built and updated my config files they are as follows:

     

    <Examine>

      <ExamineIndexProviders>

        <providers>

     

    <add name="InternalIndexer" type="UmbracoExamine.UmbracoExamineIndexer, UmbracoExamine"

                     runAsync="true"

                     supportUnpublished="true"

                     supportProtected="true" 

                     interval="10"

                     analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>   

      

          <add name="InternalMemberIndexer" type="UmbracoExamine.UmbracoExamineIndexer, UmbracoExamine"

                 dataService="UmbracoExamine.DataServices.UmbracoDataService, UmbracoExamine"

                indexSet="InternalMemberIndexSet"

               runAsync="true"

               supportUnpublished="true"

               supportProtected="true"

               interval="10"

               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>

     

          <add name="WOIIndexer" type="UmbracoExamine.UmbracoExamineIndexer, UmbracoExamine"

               dataService="UmbracoExamine.DataServices.UmbracoDataService, UmbracoExamine"

                indexSet="WOIIndexSet"

         runAsync="true"

         supportUnpublished="false"

         supportProtected="false"

         interval="10"

         />

     

        </providers>

     

     

      </ExamineIndexProviders>

      <ExamineSearchProviders defaultProvider="InternalSearcher">

        <providers>

          <add name="InternalSearcher"   indexSet="InternalIndexSet" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"

               />

     

          <add name="WOISearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"

                indexSet="WOIIndexSet"/>

     

          <add name="InternalMemberSearcher"  indexSet="InternalMemberIndexSet" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"

                     enableLeadingWildcards="true"/>

        </providers>

      </ExamineSearchProviders>

    </Examine>

     

     

    The index config looks like

     

    <ExamineLuceneIndexSets>

      <!-- The internal index set used by Umbraco back-office - DO NOT REMOVE -->

     

      <IndexSet SetName="InternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/Internal/">

        <IndexAttributeFields>

          <add Name="id" />

          <add Name="nodeName" />

          <add Name="updateDate" />

          <add Name="writerName" />

          <add Name="path" />

          <add Name="nodeTypeAlias" />

          <add Name="parentID" />

        </IndexAttributeFields>

        <IndexUserFields />

        <IncludeNodeTypes/>

        <ExcludeNodeTypes />

      </IndexSet>

     

     

      <!-- The internal index set used by Umbraco back-office for indexing members - DO NOT REMOVE -->

      <IndexSet SetName="InternalMemberIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/InternalMember/">

        <IndexAttributeFields>

          <add Name="id" />

          <add Name="nodeName"/>

          <add Name="updateDate" />

          <add Name="writerName" />

          <add Name="loginName" />

          <add Name="email" />

          <add Name="nodeTypeAlias" />

        </IndexAttributeFields>

        <IndexUserFields/>

        <IncludeNodeTypes/>

        <ExcludeNodeTypes />

      </IndexSet>

     

      <IndexSet SetName="WOIIndexSet" IndexPath="~/App_Data/ExamineIndexes/WOI/" IndexParentId="-1">

        <IndexAttributeFields>

          <add Name="id" />

          <add Name="nodeName" EnableSorting="true"/>

          <add Name="updateDate" EnableSorting="true"/>

          <add Name="createDate" EnableSorting="true"/>     

          <add Name="writerName" />

          <add Name="path" />

          <add Name="nodeTypeAlias" />

          <add Name="parentID" />

        </IndexAttributeFields>

        <IndexUserFields/>

        <IncludeNodeTypes/>

        <ExcludeNodeTypes>

          <add Name="DateFolder" />

          <add Name="GlobalContentBlock" />

          <add Name="SelectableValue" />    

        </ExcludeNodeTypes>

      </IndexSet>

     

    </ExamineLuceneIndexSets>

    When i hit my site i get the following error:

     

     

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

     

    Parser Error Message: Object reference not set to an instance of an object.

     

    Source Error: 

     

    Line 11:     <providers>

    Line 12:     

    Line 13: <add name="InternalIndexer" type="UmbracoExamine.UmbracoExamineIndexer, UmbracoExamine"

    Line 14:                  runAsync="true"

    Line 15:                  supportUnpublished="true"

     

     

     

    Its I have checked using reflector the UmbracoExamine dll in the bin dir and its definately the latest version. Anyone else seen this?  Is anyone running rc3 with umbraco 4.5.2?

     

    Regards

     

    Ismail

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Oct 08, 2010 @ 17:52
    Ismail Mayat
    1

    In answer to my own question I had an error in my web.config basically i had

        <section name="ExamineLuceneIndexSets" type="Examine.LuceneEngine.Config.IndexSets, Examine.LuceneEngine" />

    when it should have been

        <section name="ExamineLuceneIndexSets" type="Examine.LuceneEngine.Config.IndexSets, Examine"/>

    Note the assembly bit at end I had old pre rc3 stuff.  

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft