图像调整器 S3Reader2

ImageResizer S3Reader2

我是 运行ning imageResizer 3.4.3.103,我已经从 nuget 安装了 S3Reader2。这是使用 nuget 的 imageResizer 的全新安装,当我 运行 使用 S3Reader2 的应用程序时,我收到以下错误:

无法加载文件或程序集 'AWSSDK, Version=2.0.2.3, Culture=neutral, PublicKeyToken=9f476d3089b52be3' 或其依赖项之一。找到的程序集的清单定义与程序集引用不匹配。 (HRESULT 异常:0x80131040)

这是我的 web.config 文件:出于显而易见的原因,我隐藏了存储桶名称和访问密钥。

<?xml version="1.0" encoding="utf-8"?><!--
For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433-->
<configuration>
  <configSections>
<section name="resizer" type="ImageResizer.ResizerSection" requirePermission="false" />
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.5.1" />
<httpRuntime targetFramework="4.5.1" />
<httpModules>
  <add name="ImageResizingModule" type="ImageResizer.InterceptModule" />
</httpModules></system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
  <add name="ImageResizingModule" type="ImageResizer.InterceptModule" />
</modules>
</system.webServer><resizer>
<plugins>
  <add name="MvcRoutingShim" />
  <add name="DiskCache" />
<add name="PrettyGifs" />
<add name="SimpleFilters" />
<add name="S3Reader2" prefix="~/medias" buckets="*" accessKeyId="*" secretAccessKey="*" />

</plugins>
</resizer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="AWSSDK" publicKeyToken="9f476d3089b52be3" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-2.0.1.0" newVersion="2.0.1.0" />
  </dependentAssembly>
</assemblyBinding>

您已经安装了旧版本的 AWSSDK。您需要通过 NuGet 更新 AWSSDK 包。