ImageRezising.net Faces插件出现空错误

时间:2018-10-10 10:29:42

标签: asp.net-mvc-4 image-resizing imageresizer

我正在测试Faces插件:http://imageresizing.net/docs/v4/plugins/faces

但是我只得到响应“对象引用未设置为对象的实例”。为什么?从外观上看,该错误来自ImageRezing.net软件。

以下是查看错误的示例: http://azure.content.dev.bloc.net/azure/group/200000206/5319/2018/10/10/20150406145944-dos-donts-taking-perfect-linkedin-profile-picture-selfie-mobile-camera-2.jpeg?f.detect=true

  

异常信息:

     

异常类型:NullReferenceException

     

异常消息:对象引用未设置为对象的实例。

     在ImageResizer.Plugins.Faces.FeatureDetectionBase`1.Dispose()中的

    在ImageResizer.Plugins.Faces.FacesPlugin.PostPrepareSourceBitmap(ImageState s)     在ImageResizer.Resizing.AbstractImageProcessor.PostPrepareSourceBitmap(ImageState s)     在ImageResizer.ImageBuilder.Process(ImageState s)     在ImageResizer.ImageBuilder.BuildJobBitmapToBitmap(ImageJob作业,位图源,布尔透明度支持)     在ImageResizer.ImageBuilder.BuildJobBitmapToStream(ImageJob作业,位图源,流目标)     在ImageResizer.ImageBuilder.BuildJob(ImageJob作业)     在ImageResizer.ImageBuilder.Build(ImageJob作业)     在ImageResizer.InterceptModule。<> c__DisplayClass5_0.b__1(流流)     在ImageResizer.Plugins.DiskCache.CustomDiskCache。<> c__DisplayClass29_0.b__0()     在ImageResizer.Plugins.DiskCache.LockProvider.TryExecute(String key,Int32 timeoutMs,LockCallback成功)     在ImageResizer.Plugins.DiskCache.CustomDiskCache.GetCachedFile处(字符串keyBasis,字符串扩展,ResizeImageDelegate writeCallback,Int32 timeMs,布尔异步)     在ImageResizer.Plugins.DiskCache.DiskCache.Process(IResponseArgs e)     在ImageResizer.Plugins.DiskCache.DiskCache.Process(HttpContext上下文,IResponseArgs e)     在ImageResizer.InterceptModule.HandleRequest(HttpContext上下文,HttpModuleRequestAssistant ra,IVirtualFile vf)处     在ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(Object sender,EventArgs e)处     在System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     在System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep步骤)     在System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值并已完成)

Global.asax没有任何内容:

using ImageResizer.Plugins.RemoteReader;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace Bloc.AzureContent
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            RemoteReaderPlugin.Current.AllowRemoteRequest += Current_AllowRemoteRequest;
        }

        static void Current_AllowRemoteRequest(object sender, RemoteRequestEventArgs args)
        {
            args.DenyRequest = false;
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}

0 个答案:

没有答案