Copied to clipboard

Flag this post as spam?

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


  • Michael Nielsen 155 posts 812 karma points
    Oct 26, 2015 @ 10:50
    Michael Nielsen
    0

    Error installing Slimsy 1.1.5 on Umbraco 7.3.0

    When installing, I get a YSOD with the following message

    Server Error in '/' Application.
    
    Could not load file or assembly 'HtmlAgilityPack, Version=1.4.6.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' 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 'HtmlAgilityPack, Version=1.4.6.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' 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 'HtmlAgilityPack, Version=1.4.6.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' 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 'HtmlAgilityPack, Version=1.4.6.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       Imazen.SlimResponse.MarkupParser.TransformImgToPicture(String content) +0
       Imazen.SlimResponse.ResponseFilterStream.OnTransformCompleteStringInternal(MemoryStream ms) +289
       Imazen.SlimResponse.ResponseFilterStream.Flush() +273
       System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +584
       System.Web.HttpResponse.FilterOutput() +121
       System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +119
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248
    

    HtmlAgilityPack version in bin folder is 1.4.9.0.

    And this is in web.config

    <dependentAssembly>
       <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
       <bindingRedirect oldVersion="0.0.0.0-1.4.9.0" newVersion="1.4.9.0" />
    </dependentAssembly>
    
  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Oct 26, 2015 @ 11:00
    Jeavon Leopold
    0

    Can you check for duplicate assembly redirects? I encountered this issue when I performed a live update recently and resolved it with the redirect, you can see the video here (36 minutes)

    I need to think about how/if I need to update the Slimsy installer....

  • Michael Nielsen 155 posts 812 karma points
    Oct 26, 2015 @ 11:06
    Michael Nielsen
    0

    I only find the one reference to HtmlAgilityPack in the web.config.

  • Michael Nielsen 155 posts 812 karma points
    Oct 26, 2015 @ 11:14
    Michael Nielsen
    100

    Ah, think I know what is going on.

    Does installing Slimsy change the assembly redirection version numbering? For when reloading my web.config, this

    <dependentAssembly>
       <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
       <bindingRedirect oldVersion="0.0.0.0-1.4.9.0" newVersion="1.4.9.0" />
    </dependentAssembly>
    

    changed to this

    <dependentAssembly>
       <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
       <bindingRedirect oldVersion="0.0.0.0-1.4.6.0" newVersion="1.4.6.0" />
    </dependentAssembly> 
    

    Changing it back to 1.4.9.0 solved it.

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Oct 26, 2015 @ 11:34
    Jeavon Leopold
    0

    Yes, I think it does, I did have version that shipped with v1.4.9 but that caused it's own problems. I need to have a look if I need a new version for Umbraco v7.3+

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Nov 03, 2015 @ 11:41
    Jeavon Leopold
    1

    I have released Slimsy v1.1.6 for Umbraco v7.3.0+

Please Sign in or register to post replies

Write your reply to:

Draft