将TinyCache与ImageResizer一起使用时出现404错误

时间:2019-02-12 13:40:00

标签: .net caching windows-server-2008 imageresizer

我安装了ImageResizing作为独立版(基本版),现在可以与以下插件一起使用:PdfiumRenderer,SpeedOrQuality 现在,我想添加插件TinyCache,在此之后,如果我调整文件大小,则会收到404错误。

在添加插件TinyCache之前:

Working: http://localhost:99/data/test.png.ashx
Working: http://localhost:99/data/test.png.ashx?speed=0
Working: http://localhost:99/data/test.png.ashx?speed=0&width=100

添加插件TinyCache后:

Working: http://localhost:99/data/test.png.ashx
Working: http://localhost:99/data/test.png.ashx?speed=0
Not Working: http://localhost:99/data/test.png.ashx?speed=0&width=100

错误消息

Servererror in the Application /.
-------------------------------------------------------------------------------The Ressource could not found
Description: HTTP 404. ...

Requested URL: /data/test.png.ashx


--------------------------------------------------------------------------------
Versioninformationen: Microsoft .NET Framework-Version:4.0.30319; ASP.NET-Version:4.0.30319.18408 

我创建了文件夹:

.../[rootdir]/App_Data/
C:\Users\[PoolUser]\App_Data\

全部具有Pooluser的完全访问权限

http://localhost:99/resizer.debug.ashx

Diagnostics for ImageResizer 4.1.9 008a626e at localhost generated 12.02.2019 13:30:13
Please remember to provide this page when contacting support.


You are using ImageResizer Essential Edition plugins.

Note: You are using a GPL'd assembly. Consult the PdfRenderer licensing at http://imageresizing.net/licenses/pdfrenderer

0 issues detected:




Configuration:

<resizer>
<pipeline fakeExtensions=".ashx" defaultCommands="autorotate.default=true" />
<plugins>
<add name="PdfiumRenderer" />
<add name="TinyCache" />
<add name="SpeedOrQuality" />
</plugins>
</resizer>


Registered plugins:

ImageResizer.Plugins.Basic.DefaultEncoder
ImageResizer.Plugins.Basic.NoCache
ImageResizer.Plugins.Basic.ClientCache
ImageResizer.Plugins.Basic.WebConfigLicenseReader
ImageResizer.Plugins.Basic.Diagnostic
ImageResizer.Plugins.Basic.SizeLimiting
ImageResizer.Plugins.Basic.MvcRoutingShimPlugin
ImageResizer.Plugins.Basic.LicenseDisplay
ImageResizer.Plugins.PdfiumRenderer.PdfiumRendererPlugin
ImageResizer.Plugins.TinyCache.TinyCachePlugin
ImageResizer.Plugins.Basic.SpeedOrQuality

Accepted querystring keys:

quality, format, thumbnail, page, width, height, maxwidth, maxheight, annotations, lcd, grayscale, halftone, print, transparent, w, h, crop, bgcolor, rotate, flip, sourceFlip, sFlip, sRotate, borderWidth, borderColor, paddingWidth, paddingColor, frame, useresizingpipeline, cache, process, margin, dpi, zoom, autorotate

Accepted file extensions:

pdf, bmp, gif, exif, png, tif, tiff, tff, jpg, jpeg, jpe, jif, jfif, jfi

Environment information:

Running Microsoft-IIS/7.5 on Microsoft Windows NT 6.1.7601 Service Pack 1 and CLR 4.0.30319.18408
Trust level: Unrestricted
OS bitness: AMD64
Executing assembly: c:\windows\system32\inetsrv\w3wp.exe
IntegratedPipeline: True

Installed HttpModules: 

System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key OutputCache)
System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key Session)
System.Web.Security.WindowsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key WindowsAuthentication)
System.Web.Security.FormsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key FormsAuthentication)
System.Web.Security.DefaultAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key DefaultAuthentication)
System.Web.Security.RoleManagerModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key RoleManager)
System.Web.Security.UrlAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key UrlAuthorization)
System.Web.Security.FileAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key FileAuthorization)
System.Web.Security.AnonymousIdentificationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key AnonymousIdentification)
System.Web.Profile.ProfileModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key Profile)
System.Web.UrlMappingsModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key UrlMappingsModule)
System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35          (under key ServiceModel-4.0)
System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key UrlRoutingModule-4.0)
System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35          (under key ScriptModule-4.0)

ImageResizer.InterceptModule, ImageResizer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null          (under key ImageResizingModule)

Loaded assemblies:

mscorlib                                 File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Web                               File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System                                   File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Core                              File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Configuration                     File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Xml                               File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Web.ApplicationServices           File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
Microsoft.Build.Utilities.v4.0           File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Runtime.Caching                   File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Data                              File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Web.RegularExpressions            File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
Microsoft.JScript                        File: 11.0.50938.18408 (10.0.0.0) Informational: 11.0.50938.18408               
System.ServiceModel.Activation           File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.ServiceModel.Internals            File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.ServiceModel                      File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
SMDiagnostics                            File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Xaml.Hosting                      File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Web.Extensions                    File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
Microsoft.CSharp                         File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Web.Services                      File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Drawing                           File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.EnterpriseServices                File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.IdentityModel                     File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Runtime.Serialization             File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.ServiceModel.Web                  File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Activities                        File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.ServiceModel.Activities           File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.WorkflowServices                  File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Data.DataSetExtensions            File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Xml.Linq                          File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.ComponentModel.DataAnnotations    File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Web.DynamicData                   File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
ImageResizer                             File: 4.1.9.1086 (4.0.0.0)      Informational: 4.1.9 008a626e                 
ImageResizer.Plugins.PdfiumRenderer      File: 4.1.9.1086 (4.0.0.0)      Informational: 4.1.9 008a626e                 
ImageResizer.Plugins.PdfRenderer         File: 4.1.9.1086 (4.0.0.0)      Informational: 4.1.9 008a626e                 
ImageResizer.Plugins.TinyCache           File: 4.1.9.1086 (4.0.0.0)      Informational: 4.1.9 008a626e                 
ImageResizer.Storage                     File: 4.1.9.1086 (4.0.0.0)      Informational: 4.1.9 008a626e                 Performance Edition
PdfiumViewer                             File: 2.7.0.0 (2.7.0.0)         Informational:                                
System.Web.Mobile                        File: 4.0.30319.18408 (4.0.0.0) Informational: 4.0.30319.18408                
System.Web.resources                     File:  (4.0.0.0)                Informational:                                

The following plugin assemblies are loaded but do not seem to be in use. You should remove them (and their unused dependencies) from the /bin folder to improve application load times:

ImageResizer.Plugins.PdfRenderer         File: 4.1.9.1086 (4.0.0.0)      Informational: 4.1.9 008a626e                 

Reference list of plugin dependencies - so you know what additional DLLs to remove when removing a plugin. (may not be up-to-date, see plugin docs):

The FreeImage plugin has the following dependencies: FreeImage.dll and FreeImageNET.dll
The Logging plugin depends on: NLog.dll
The AdvancedFilters, RedEye, and WhitespaceTrimmer plugins depend on: AForge.dll, AForge.Math.dll, and AForge.Imaging.dll
The PsdReader and PsdComposer plugins depend on: PsdFile.dll
The S3Reader plugin depends on: AWSSDK.dll
The BatchZipper plugin depends on: Ionic.Zip.Reduced.dll
The PdfRenderer plugin depends on gsdll32.dll or gdsll32.dll
The Faces and RedEye plugins depend on several dozen files... see the plugin docs.




When fetching a remote license file (if you have one), the following information is sent via the querystring.
                         license_id [integer]
                         manager_id [guid]
                   total_heartbeats [integer]
                     new_heartbeats [integer]
                    first_heartbeat [integer]
                  reporting_version 3
                            proc_64 1
                          proc_guid GEOmh_Pb506TD980upokQQ
                    proc_sys_dotnet 4.5.1
                           proc_iis 7.5
           proc_integrated_pipeline 1
                   proc_asyncmodule 0
              proc_default_commands autorotate.default=true
                proc_working_set_mb 94
                    proc_git_commit 008a626e
                  proc_info_version 4.1.9
                  proc_file_version 4.1.9.1086
                  proc_apppath_hash MGuDrCwV
                                mod .Caching.OutputCacheModule
                                mod .SessionState.SessionStateModule
                                mod .WindowsAuthenticationModule
                                mod .FormsAuthenticationModule
                                mod .DefaultAuthenticationModule
                                mod .RoleManagerModule
                                mod .UrlAuthorizationModule
                                mod .FileAuthorizationModule
                                mod .AnonymousIdentificationModule
                                mod .Profile.ProfileModule
                                mod .UrlMappingsModule
                                mod System.ServiceModel.Activation.ServiceHttpModule
                                mod .Routing.UrlRoutingModule
                                mod .Handlers.ScriptModule
                                mod ImageResizer.InterceptModule
                    h_logical_cores 24
                       h_mac_digest I9jewBd8CbrAs1c79zsGXw
                             h_os64 1
             h_network_drives_count 0
               h_other_drives_count 0
               h_fixed_drives_count 1
                      h_fixed_drive NTFS*,35,134
                                  p SizeLimiting
                                  p PdfiumRenderer
                                  p TinyCache
                                  p SpeedOrQuality
                        postauth_ok 1
              counter_update_failed 0
                      postauth_404_ 1
            module_response_ext_png 1
               jobs_completed_total 0
      jobs_completed_per_second_max 0
      jobs_completed_per_minute_max 0
     jobs_completed_per_15_mins_max 0
        jobs_completed_per_hour_max 0
                   blob_reads_total 0
          blob_reads_per_second_max 0
          blob_reads_per_minute_max 0
         blob_reads_per_15_mins_max 0
            blob_reads_per_hour_max 0
               decoded_pixels_total 0
      decoded_pixels_per_second_max 0
      decoded_pixels_per_minute_max 0
     decoded_pixels_per_15_mins_max 0
        decoded_pixels_per_hour_max 0
              blob_read_bytes_total 0
     blob_read_bytes_per_second_max 0
     blob_read_bytes_per_minute_max 0
    blob_read_bytes_per_15_mins_max 0
       blob_read_bytes_per_hour_max 0
               encoded_pixels_total 0
      encoded_pixels_per_second_max 0
      encoded_pixels_per_minute_max 0
     encoded_pixels_per_15_mins_max 0
        encoded_pixels_per_hour_max 0
                      job_times_5th 0
                     job_times_25th 0
                     job_times_50th 0
                     job_times_75th 0
                     job_times_95th 0
                    job_times_100th 0
                  scaling_ratio_5th 0
                 scaling_ratio_25th 0
                 scaling_ratio_50th 0
                 scaling_ratio_75th 0
                 scaling_ratio_95th 0
                scaling_ratio_100th 0
                  output_height_5th 0
                 output_height_25th 0
                 output_height_50th 0
                 output_height_75th 0
                 output_height_95th 0
                output_height_100th 0
                blob_read_times_5th 0
               blob_read_times_25th 0
               blob_read_times_50th 0
               blob_read_times_75th 0
               blob_read_times_95th 0
              blob_read_times_100th 0
                   output_width_5th 0
                  output_width_25th 0
                  output_width_50th 0
                  output_width_75th 0
                  output_width_95th 0
                 output_width_100th 0
            source_aspect_ratio_5th 0
           source_aspect_ratio_25th 0
           source_aspect_ratio_50th 0
           source_aspect_ratio_75th 0
           source_aspect_ratio_95th 0
          source_aspect_ratio_100th 0
            output_aspect_ratio_5th 0
           output_aspect_ratio_25th 0
           output_aspect_ratio_50th 0
           output_aspect_ratio_75th 0
           output_aspect_ratio_95th 0
          output_aspect_ratio_100th 0
                 job_other_time_5th 0
                job_other_time_25th 0
                job_other_time_50th 0
                job_other_time_75th 0
                job_other_time_95th 0
               job_other_time_100th 0
                   decode_times_5th 0
                  decode_times_25th 0
                  decode_times_50th 0
                  decode_times_75th 0
                  decode_times_95th 0
                 decode_times_100th 0
                  output_pixels_5th 0
                 output_pixels_25th 0
                 output_pixels_50th 0
                 output_pixels_75th 0
                 output_pixels_95th 0
                output_pixels_100th 0
             collect_info_times_5th 0
            collect_info_times_25th 0
            collect_info_times_50th 0
            collect_info_times_75th 0
            collect_info_times_95th 0
           collect_info_times_100th 0
                  source_pixels_5th 0
                 source_pixels_25th 0
                 source_pixels_50th 0
                 source_pixels_75th 0
                 source_pixels_95th 0
                source_pixels_100th 0
                   source_width_5th 0
                  source_width_25th 0
                  source_width_50th 0
                  source_width_75th 0
                  source_width_95th 0
                 source_width_100th 0
                   encode_times_5th 0
                  encode_times_25th 0
                  encode_times_50th 0
                  encode_times_75th 0
                  encode_times_95th 0
                 encode_times_100th 0
                  source_height_5th 0
                 source_height_25th 0
                 source_height_50th 0
                 source_height_75th 0
                 source_height_95th 0
                source_height_100th 0
                      image_domains 
                       page_domains 
                         query_keys w,speed
               extra_job_query_keys 

0 个答案:

没有答案