1

I'm using the Image Resizer imageresizing.net. But, when I installed DiskCache plugin to serve cached images, an error occurs:

Field not found: 'ImageResizer.Configuration.PluginConfig.LoggingAvailable'.
Here is my web.config configuration for resizer tag:

<code> <resizer>
    <clientcache minutes="1440" />
    <plugins>
      <remove name="DefaultEncoder" />
      <remove name="NoCache" />
      <remove name="ClientCache" />
      <add name="DefaultEncoder" />
      <add name="NoCache" />
      <add name="ClientCache" />
      <add name="DiskCache" />
      <diskCache dir="~/imagecache" autoClean="false" hashModifiedDate="true" enabled="true"
   subfolders="32" cacheAccessTimeout="15000" asyncWrites="false" asyncBufferSize="10485760" />

      <cleanupStrategy startupDelay="00:05" minDelay="00:00:20" maxDelay="00:05"
        optimalWorkSegmentLength="00:00:04"
        targetItemsPerFolder="400" maximumItemsPerFolder="1000"
        avoidRemovalIfCreatedWithin="24:00" avoidRemovalIfUsedWithin="4.00:00"
        prohibitRemovalIfUsedWithin="00:05" prohibitRemovalIfCreatedWithin="00:10" />
    </plugins>
  </resizer></code>
4

1 回答 1

2

经过大量测试,我发现这很简单是版本问题。

我没有使用“Nuget.Package.Manager”并更新:

  • ImageReziser Web.Config 安装到版本 3.4.3
  • ImageReziser.Plugins.DiskCache 到版本 3.4.3

现在我没有得到这个错误。

于 2015-05-16T16:56:40.563 回答