代码之家  ›  专栏  ›  技术社区  ›  Ludovic Martin

暂存或开发环境中的ImageResizer许可证

  •  1
  • Ludovic Martin  · 技术社区  · 9 年前

    我们正在使用ImageResizer性能许可证,我们的开发环境的映射似乎不起作用:

    1 Issues detected:
    
    resizer configuration(ConfigurationError):  You can only map non-public hostnames to arbitrary licenses. Skipping bruneaumedia.dev1fr.isg.jm-bruneau.com
    

    布鲁内乌梅迪亚.dev1fr.isg.jm-bruneau。com是一个私有域,但被视为公共域。我们有其他开发环境,但没有一个被认为是私有的。

    我们有什么遗漏吗?

    提前谢谢。

    调整大小器的全部输出。调试:

    Image resizer diagnostic sheet      bruneaumedia.dev1fr.isg.jm-bruneau.com  26/01/2016 12:44:19
    
    1 Issues detected:
    
    resizer configuration(ConfigurationError):  You can only map non-public hostnames to arbitrary licenses. Skipping bruneaumedia.dev1fr.isg.jm-bruneau.com
    
    
    Assembly use report: 
    
    
    You are using plugins and assemblies from the V4 Performance Edition.
    
    ----------------
    
    License keys
    
    List of installed domain licenses:
    bruneaumedia.fr => R4Performance
    
    ----------------
    
    Registered plugins:
    
    ImageResizer.Plugins.Basic.DefaultEncoder
    ImageResizer.Plugins.Basic.NoCache
    ImageResizer.Plugins.Basic.ClientCache
    ImageResizer.Plugins.Basic.Diagnostic
    ImageResizer.Plugins.Basic.WebConfigLicenseReader
    ImageResizer.Plugins.Basic.SizeLimiting
    ImageResizer.Plugins.Basic.MvcRoutingShimPlugin
    ImageResizer.Plugins.DiskCache.DiskCache
    ImageResizer.Plugins.LicenseVerifier.LicenseEnforcer`1[ImageResizer.Plugins.DiskCache.DiskCache]
    ImageResizer.Plugins.PrettyGifs.PrettyGifs
    ImageResizer.Plugins.ImageDownloader.ImageDownloaderPlugin
    
    Configuration:
    
    <resizer>
    <diagnostics enableFor="localhost" />
    <licenses>
    <maphost from="bruneaumedia.dev1fr.isg.jm-bruneau.com" to="bruneaumedia.fr" />
    <license>RG9t...</license>
    </licenses>
    <clientcache minutes="1440" />
    <plugins>
    <add name="DiskCache" />
    <add name="PrettyGifs" />
    <add name="ImageDownloader" />
    </plugins>
    </resizer>
    
    
    Accepted querystring keys:
    
    quality, format, thumbnail, colors, dither, maxwidth, maxheight, width, height, w, h, crop, page, bgcolor, rotate, flip, sourceFlip, sFlip, sRotate, borderWidth, borderColor, paddingWidth, paddingColor, frame, useresizingpipeline, cache, process, margin, dpi, zoom, autorotate, 
    
    Accepted file extensions:
    
    bmp, gif, exif, png, tif, tiff, tff, jpg, jpeg, jpe, jif, jfif, jfi, 
    
    2 回复  |  直到 9 年前
        1
  •  0
  •   Lilith River    9 年前

    您需要使用的私有子域 bruneaumedia.fr 或为添加许可证 jm-bruneau.com

    ImageResizer只允许.本地子域和单个主机名(如 testserver )通过映射免费使用。

    当然,您可以免费使用您购买的域的任何子域。后者是一种常见的方法,因为您可以通过多种方式控制访问(私有DNS记录、私有IP、IP白名单、IIS身份验证等)。

    在本例中,您正尝试使用ImageResizer,但主机名与您购买的主机名不同。ImageResizer无法验证主机名的公共/私有性质,只能验证它是否具有 潜在的 在公共DNS上工作。

        2
  •  0
  •   Remus    9 年前

    我们使用的是ImageResizer性能许可证,我们使用不同的子域.local进行开发、暂存。 Image resizer诊断表给出的结果与Ludovic Martin相同:

    2 Issues detected:
    
    resizer configuration(ConfigurationError):  You can only map non-public hostnames to arbitrary licenses. Skipping media.staging.private-domain.local
    
    
    resizer configuration(ConfigurationError):  You can only map non-public hostnames to arbitrary licenses. Skipping media.dev.private-domain.local
    

    配置文件:

    <licenses>
          <maphost from="media.staging.private-domain.local" to="public-domain.fr" />
          <maphost from="media.dev.private-domain.local" to="public-domain.fr" />
          <license>
            RG9t...
          </license>
    </licenses>