1
我试图更新到4.1.9版本,但根据诊断页面,二进制文件看起来没有DRM自由。4.1.9的许可证问题(MyGet中可能存在非DRM)
如果任何人都可以验证MyGet存储库中的4.1.9二进制文件是否无DRM,我将不胜感激。
另一位用户在这里遇到类似的问题:Upgrade to imageresizer 4.1.9 loses my license。 我没有运气就完成了“DRM免费安装故障排除”中的所有步骤。我在计算机和构建服务器上获得了相同的二进制文件。
我降级到版本4.1.8,并开始遇到我认为在4.1.9中修复的问题,所以我宁愿让它工作。
下面是错误的堆栈跟踪:
System.InvalidOperationException: Nullable object must have a value.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at ImageResizer.Configuration.Performance.CircularTimeBuffer.<>c.<DequeueValues>b__14_0(TimeSlotResult r)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at ImageResizer.Configuration.Performance.PerIntervalSampling.FireCallbackEvents()
at ImageResizer.Configuration.Performance.PerIntervalSampling.Record(Int64 timestamp, Int64 count)
at ImageResizer.Configuration.Performance.MultiIntervalStats.Record(Int64 timestamp, Int64 count)
at ImageResizer.Configuration.Performance.GlobalPerf.JobComplete(ImageBuilder builder, ImageJob job)
at ImageResizer.ImageBuilder.Build(ImageJob job)
at ImageResizer.InterceptModule.<>c__DisplayClass5_0.<HandleRequest>b__1(Stream stream)
at ImageResizer.Plugins.DiskCache.CustomDiskCache.<>c__DisplayClass29_0.<TryWriteFile>b__0()
at ImageResizer.Plugins.DiskCache.LockProvider.TryExecute(String key, Int32 timeoutMs, LockCallback success)
at ImageResizer.Plugins.DiskCache.CustomDiskCache.GetCachedFile(String keyBasis, String extension, ResizeImageDelegate writeCallback, Int32 timeoutMs, Boolean asynchronous)
at ImageResizer.Plugins.DiskCache.DiskCache.Process(IResponseArgs e)
at ImageResizer.Plugins.DiskCache.DiskCache.Process(HttpContext context, IResponseArgs e)
at ImageResizer.InterceptModule.HandleRequest(HttpContext context, HttpModuleRequestAssistant ra, IVirtualFile vf)
at ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
以下是从诊断页的摘录:
Diagnostics for ImageResizer 4.1.8 2a9f6322 at localhost generated 8/28/2017 1:58:01 PM
Please remember to provide this page when contacting support.
---------------------- Licensing OFF -----------------------
You are using a DRM-disabled version of ImageResizer. License enforcement is OFF.
DRM-enabled assemblies (if present) would see <licenses licenseError='Watermark'>
Need to change domains? Get a discounted upgrade to a floating license: https://imageresizing.net/licenses/convert
---------------------- Licensing OFF -----------------------
You are using ImageResizer Performance Edition plugins.
0 issues detected:
Configuration:
<resizer>
<plugins>
<add name="FastScaling" />
<add name="RemoteReader" />
<add name="EPiServerBlobReaderPlugin" />
<add name="EPiFocalPointPlugin" />
<add name="DiskCache" />
</plugins>
<diskcache dir="~/App_Data/ImageCache" />
<remotereader allowAllSignedRequests="true" signingKey="[redacted]" />
<clientcache minutes="1440" />
</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.FastScaling.FastScalingPlugin
ImageResizer.Plugins.RemoteReader.RemoteReaderPlugin
ImageResizer.Plugins.EPiServerBlobReader.EPiServerBlobReaderPlugin
ImageResizer.Plugins.EPiFocalPoint.EPiFocalPointPlugin
ImageResizer.Plugins.DiskCache.DiskCache
ImageResizer.Plugins.LicenseVerifier.LicenseEnforcer`1[ImageResizer.Plugins.DiskCache.DiskCache]
Accepted querystring keys:
quality, format, thumbnail, f.sharpen, 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
Environment information:
Running Microsoft-IIS/8.5 on Microsoft Windows NT 6.3.9600.0 and CLR 4.0.30319.42000
Trust level: Unrestricted
OS bitness: AMD64
Executing assembly: c:\windows\system32\inetsrv\w3wp.exe
IntegratedPipeline: True
NuGet有一个错误,将机器级缓存中的NuGet.org和MyGet.org二进制文件交换出来。这很可能是你的问题的根源。我们引入了企业范围的许可证密钥来解决此问题(备选方案不使用NuGet)。请参阅https:/imageresizing.net/licenses/convert –
感谢您的输入。奇怪的是,它适用于4.1.8。 我完成了清除机器范围缓存的步骤,所以不确定是否是这样。将考虑许可证密钥解决方案。 – tnicolaysen
4.1.8有一个坏的,坏的错误。 4.1.8和4.1.9只有[几行代码]不同(https://github.com/imazen/resizer/compare/v4.1.8...v4.1.9) - 它们都不会改变授权的方式作品。 你使用的是什么版本的NuGet? –