+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Sitemap Generator Broken

Sitemap Generator Broken

4 posts, 2 answered
  1. Matt
    Matt avatar
    4 posts
    Registered:
    30 Jun 2014
    01 Jul 2014
    Link to this post

    Hi Guys,

    New to the Forum. Thank you for the great feedback here.

    We've upgraded to SF v.7 and I am now faced with a broken sitemap generator.

    The SEO Sitemap Generator mod seems to behave OK in the admin section, Successfully saving and creating a robots.txt file, however when you navigate to either robots.txt (which gives a failure to execute URL ) or robots.xml you get:

    Server Error in '/' Application.Could not load file or assembly 'Telerik.Sitefinity.Utilities, Version=5.4.4010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Sitefinity.Utilities, Version=5.4.4010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Sitefinity.Utilities, Version=5.4.4010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Stack Trace: 

    [FileLoadException: Could not load file or assembly 'Telerik.Sitefinity.Utilities, Version=5.4.4010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
    EF.SitemapGenerator.<>c__DisplayClass6.<PageNodeContainsDynamicControls>b__3(Type k) +0
    System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate) +146
    EF.SitemapGenerator.SitemapGenerator.<PageNodeContainsDynamicControls>b__2(PageControl c) +111
    System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate) +146
    EF.SitemapGenerator.SitemapGenerator.PageNodeContainsDynamicControls(PageNode p) +226
    EF.SitemapGenerator.SitemapGenerator.<GenerateSitemapXml>b__0(PageNode p) +32
    System.Linq.WhereSelectListIterator`2.MoveNext() +104
    System.Xml.Linq.XContainer.AddContentSkipNotify(Object content) +273
    EF.SitemapGenerator.SitemapGenerator.GenerateSitemapXml() +182
    EF.SitemapGenerator.Routing.SitemapRouteHandler.GetHttpHandler(RequestContext requestContext) +72
    System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +9709884
    System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +82
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

    Any suggestions would be appreciated. 

    Thanks for the read.

    Answered
  2. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    02 Jul 2014
    Link to this post
    Hello Matt,

    It seems there is a mismatch between the referenced and the actual library - Telerik.Sitefinity.Utilities. You can use a simple binding redirect to fix this:
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Telerik.Sitefinity.Utilities" publicKeyToken="b28c218413bdf563" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion=""/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>

    Add it in your web.config before the last closing tag. In newVersion add the one of the dll in your bin folder. For Sitefinity 7.0 it should be 7.0.5100.0.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
    Answered
  3. Matt
    Matt avatar
    4 posts
    Registered:
    30 Jun 2014
    02 Jul 2014 in reply to Nikola Zagorchev
    Link to this post

    You Sir, are a saint.

    Thank you for your help, Nikola!

     

  4. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    02 Jul 2014
    Link to this post
    Hello Matt,

    I am glad the issue has been resolved. Contact us if we can help further or you have any questions.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 2 answered