is it possible to ignore assembly manifest mismatch?

后端 未结 2 1754
忘掉有多难
忘掉有多难 2021-01-17 22:43

I am trying to use a couple of libraries in my asp.net website that I pulled in using NuGet.

Problem is I am getting this error:

Could not load file          


        
相关标签:
2条回答
  • 2021-01-17 23:15

    The latest (1.5.13.0) AWSSDK release seems to have been signed with a different key than the previous releases. So unfortunately a bindingRedirect won't work.

    Proceed as follows:

    Open the package manager console (Tools > Library Package Manager > Package Manager Console) and type:

    PM> Uninstall-Package -Force AWSSDK
    

    followed by:

    PM> Install-Package AWSSDK -Version 1.5.12.1
    

    Then double check your web.config file. Make sure that it only contains the following binding redirect for AWSSDK:

    <dependentAssembly>
        <assemblyIdentity name="AWSSDK" publicKeyToken="cd2d24cd2bace800" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.5.12.1" newVersion="1.5.12.1" />
    </dependentAssembly>
    

    Now, your project should be good to go.

    0 讨论(0)
  • 2021-01-17 23:19

    Try to edit .csproj file and remove the Version=1.5.9.1 from line where the assembly awssdk is referenced.

    0 讨论(0)
提交回复
热议问题