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

Exception of type 'System.OutOfMemoryException' was thrown.

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

异常详细信息: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

源错误:


行 830:    public string replace_href(string inputString, string teze)
行 831:    {
行 832:        StringBuilder result = new StringBuilder(inputString.Length);
行 833:        int currentIndex = 0;
行 834:        

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

堆栈跟踪:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Text.StringBuilder..ctor(String value, Int32 startIndex, Int32 length, Int32 capacity) +90
   System.Text.StringBuilder..ctor(Int32 capacity) +34
   ASP.index_aspx.replace_href(String inputString, String teze) in d:\wwwroot\bx.wskmn.com\index.aspx:832
   ASP.<sttr>d__12.MoveNext() in d:\wwwroot\bx.wskmn.com\index.aspx:458
   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