ImageResizer S3Reader2

时间:2015-05-28 21:30:18

标签: imageresizer

我正在运行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>

   

1 个答案:

答案 0 :(得分:0)

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