“/”应用程序中的服务器错误。

引发类型为“System.OutOfMemoryException”的异常。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。

源错误:


行 504:{
行 505:    Regex regex = new Regex(pattern, options | RegexOptions.Compiled);
行 506:    return regex.Replace(input, replacement, 1);
行 507:}
行 508:// 替换所有 不区分大小写

源文件: d:\wwwroot\bx.wskmn.com\index.aspx    行: 506

堆栈跟踪:


[OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。]
   Go2192(RegexRunner ) +0
   System.Text.RegularExpressions.CompiledRegexRunner.Go() +17
   System.Text.RegularExpressions.RegexRunner.Scan(Regex regex, String text, Int32 textbeg, Int32 textend, Int32 textstart, Int32 prevlen, Boolean quick, TimeSpan timeout) +281
   System.Text.RegularExpressions.Regex.Run(Boolean quick, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat) +166
   System.Text.RegularExpressions.Regex.Match(String input, Int32 startat) +30
   System.Text.RegularExpressions.RegexReplacement.Replace(Regex regex, String input, Int32 count, Int32 startat) +69
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement, Int32 count, Int32 startat) +105
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement, Int32 count) +40
   ASP.index_aspx.ReplaceFirst(String input, String pattern, String replacement, RegexOptions options) in d:\wwwroot\bx.wskmn.com\index.aspx:506
   ASP.<sttr>d__12.MoveNext() in d:\wwwroot\bx.wskmn.com\index.aspx:436
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<Site>d__8.MoveNext() in d:\wwwroot\bx.wskmn.com\index.aspx:266
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<getsource>d__3.MoveNext() in d:\wwwroot\bx.wskmn.com\index.aspx:198
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<PageLoadAsync>d__0.MoveNext() in d:\wwwroot\bx.wskmn.com\index.aspx:152
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.UI.<ExecuteTasksAsync>d__3.MoveNext() +363
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.UI.<ProcessRequestAsync>d__554.MoveNext() +876


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3535.0