Copied to clipboard

Flag this post as spam?

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


  • Jamie Wu 19 posts 79 karma points
    Apr 03, 2013 @ 03:01
    Jamie Wu
    0

    Upgrade error 6.0.2 -> 6.0.3

    Followed Upgrade in general document and had the error below:

    copied and replaced folders:

    • /bin
    • /Install (don't forget to remove it after the upgrade is finished)
    • /Umbraco
    • /Umbraco_Client
    Merged the configuration files:
    • Any file in the /Config folder
    • The web.config file in the root of your site
      • Warning: Do not remove the version number, nor the existing connection string
    • In rare cases also the Web.config file in the Views folder
    ANY IDEAS??!!

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 03, 2013 @ 06:01
    Tom Fulton
    0

    Hi,

    Can you post the full stack trace?  I'm curious what file that's coming from, or is it from a non-Umbraco class (ie one you wrote for the website)?

  • Jamie Wu 19 posts 79 karma points
    Apr 03, 2013 @ 12:06
    Jamie Wu
    0

    Hi Tom,

    Microsoft (R) Visual C# Compiler version 4.0.30319.17929
    
    for Microsoft (R) .NET Framework 4.5
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    c:\HostingSpaces\bcecuk\forlove.org.uk\wwwroot\App_Code\LuceneHighlightHelper.cs(9,18): error CS0234: The type or namespace name 'Highlight' does not exist in the namespace 'Lucene.Net' (are you missing an assembly reference?)
    c:\HostingSpaces\bcecuk\forlove.org.uk\wwwroot\App_Code\LuceneHighlightHelper.cs(24,12): error CS0246: The type or namespace name 'Formatter' could not be found (are you missing a using directive or an assembly reference?)
    
  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 03, 2013 @ 18:29
    Tom Fulton
    0

    My feeling is that you're missing a DLL, perhaps Lucene.Net.Highlight.dll?  This isn't included in the standard Umbraco install, I wonder if it was added via a package in your old install and got deleted somehow during the upgrade?  Do you have your old install around where you can check for this DLL?

  • Jamie Wu 19 posts 79 karma points
    Apr 03, 2013 @ 23:04
    Jamie Wu
    0

    It was a new installed 6.02 up running fine with MVC starter kit so there shouldn't be any Lucene.Net.Highlight.dll needed in the first place. Then I took the 6.03 zip, copied the above folders and config files ending up crash. Have you ever tried the upgrade successful?

  • Jamie Wu 19 posts 79 karma points
    Apr 04, 2013 @ 01:43
    Jamie Wu
    100

    Hi Tom,

    Found the fix!! You are right Umbraco upgrade are looking for Lucene Highlight cs files which seems not exist in the 6.03 zip. 

    files to copy to App_Code folder make the fix:

    DefaultEncoder.cs, Encoder.cs, Formatter.cs, Fragmenter.cs, Highlighter.cs, QueryScorer.cs, 

    QueryTermExtractor.cs, Scorer.cs, SimpleFragmenter.cs, SimpleHTMLFormatter.cs, TextFragment.cs,

    TextFragment.cs, TokenGroup.cs, WeightedTerm.cs

    which can be downloaded from the URL: https://svn.apache.org/repos/asf/lucene/lucene.net/trunk/C%23/contrib/Highlighter.Net/

    StackOverflow once talked about it: http://stackoverflow.com/questions/4957666/where-has-lucene-net-highlight-gone

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 04, 2013 @ 02:15
    Tom Fulton
    0

    Great, glad to hear all is working!

Please Sign in or register to post replies

Write your reply to:

Draft