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

Forums / Developing with Sitefinity / SEO Sitemap Generator doesn't work

SEO Sitemap Generator doesn't work

12 posts, 12 answered
  1. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    13 May 2013
    Link to this post
    Downloaded SEO Sitemap Generator from http://www.sitefinity.com/developer-network/marketplace/publishers/enterprisefinity/seo-sitemap-generator-. Unpacked, installed dll into bin folder of site's root directory. got this error:

    Server Error in '/' Application.







    Could not load file or assembly 'Telerik.Sitefinity, 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, 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, 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, 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.Initialization.InitializeRoutine.PreAppStartMethod() +0 [InvalidOperationException: The pre-application start initialization method PreAppStartMethod on type EF.SitemapGenerator.Initialization.InitializeRoutine threw an exception with the following error message: Could not load file or assembly 'Telerik.Sitefinity, 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).]   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +423   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677 [HttpException (0x80004005): The pre-application start initialization method PreAppStartMethod on type EF.SitemapGenerator.Initialization.InitializeRoutine threw an exception with the following error message: Could not load file or assembly 'Telerik.Sitefinity, 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).]   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9090988   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256



     







    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

     

    my site runs in 5.4.4

    pls help
    Answered
  2. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    13 May 2013
    Link to this post
    Inna,

    There are different builds of 5.4. You'll need to make sure the version of the Sitemap Generator you're using is the correct one for your specific build.

    Another way to fix the situation is to do some assembly binding in the web.config. Steve put up an excellent post on how to do it.
    Answered
  3. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    13 May 2013 in reply to Tim
    Link to this post
    Tim, thank you. And I really would like to make sure the version of the Sitemap Generator I am using is the correct one for my specific build. However, I see here only one version of sitemap http://www.sitefinity.com/developer-network/marketplace/publishers/enterprisefinity/seo-sitemap-generator- available. So, how do I make sure? And, for me, the simplier, the better - I just would love to put the dll into the bin folder and the map works - as promised in the instructions.
    Answered
  4. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    13 May 2013 in reply to Tim
    Link to this post
    Also, Tim, if there is no such thing as just painlessly adding the dll into the bin folder and it
    works as promised and i still have to add the code into webconfig, is
    this code all i should add (without any modifications) and a specific
    place?

     <runtime>     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">         <dependentAssembly>             <assemblyIdentity name="Telerik.Sitefinity" publicKeyToken="b28c218413bdf563" culture="neutral"/>             <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion=""/>         </dependentAssembly>         <dependentAssembly>             <assemblyIdentity name="Telerik.Sitefinity.Model" publicKeyToken="b28c218413bdf563" culture="neutral"/>             <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion=""/>         </dependentAssembly>         <dependentAssembly>             <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral"/>             <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion=""/>         </dependentAssembly>     </assemblyBinding> </runtime>

    Answered
  5. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    13 May 2013 in reply to Inna
    Link to this post
    Inna,

    There are 2 versions of the generator (for 5.4) in that .zip archive; one for 5.4 pre-hotfixes and one for 5.4 Hotfix 1. There's another version of 5.4, Hotfix 2, that I don't see a corresponding dll for. That being the case, it might be a lot easier to simply go the assembly binding route.

    To check which version you're running, here's a knowledge base article that should help.
    Answered
  6. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    13 May 2013 in reply to Inna
    Link to this post
    Inna,

    You'll need to fill in the "newVersion" parts. In the article, below the code block, there are instructions on how to find the values you'll need.
    Answered
  7. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    13 May 2013 in reply to Tim
    Link to this post
    Tim, you are right. I run 5.4.4 but previously installed 5.4 hotfix. it crashed. i now installed the correct one (hopefully)  - 5.4. It doesn't crash the site, but it doesn't appear in the admin section either. do i have to recompile the site for it to start working?
    Answered
  8. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    13 May 2013 in reply to Inna
    Link to this post
    Inna,

    I don't believe so. At least, it doesn't say anything in the installation instructions.

    If it doesn't show up, under Administration -> Sitemap Generator, try restarting Sitefinity. You can do that by making a small, arbitrary change in the web.config or recycling the application pool the site is running on. Maybe that will get things going again.
    Answered
  9. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    13 May 2013 in reply to Tim
    Link to this post
    Oh, I see. Thank you for your patience, Tim. Restarting the pool helped. I see the map. Is there any manual on how to make it available as an external page - for the users?
    Answered
  10. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    13 May 2013 in reply to Inna
    Link to this post
    Inna,

    I'm not familiar with how the Sitemap Generator actually works. It might be a widget that you're able to drop on a page or it might be a URL that you need to view with your browser.

    For more specific information on it, I'd shoot an email over to the creator and see if they can help.
    Answered
  11. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    13 May 2013 in reply to Tim
    Link to this post
    Thank you, Tim
    Answered
  12. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    13 May 2013 in reply to Inna
    Link to this post
    Inna,

    No problem at all. If you have a moment to spare, could you mark my answers as helpful? I'd really appreciate it! :)
    Answered
12 posts, 12 answered