最离谱的来了,在代码基本清空的情况下居然也能报input=null,已经试过清缓存或重新编译
值不能为 null。
参数名: input
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ArgumentNullException: 值不能为 null。
参数名: input
源错误:
[没有相关的源行]
源文件: D:\vs\project\自查剧本\web\handler\search.ashx.cs 行: 18
堆栈跟踪:
[ArgumentNullException: 值不能为 null。
参数名: input]
System.Text.RegularExpressions.Regex.IsMatch(String input) +6780315
web.handler.search.ProcessRequest(HttpContext context) in D:\vs\project\自查剧本\web\handler\search.ashx.cs:18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4494.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using System.Text;
using System.Data;
using System.Text.RegularExpressions;