Server Error in '/' Application.

'capacity' must be greater than zero.
Parameter name: capacity

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: 'capacity' must be greater than zero.
Parameter name: capacity

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentOutOfRangeException: 'capacity' must be greater than zero.
Parameter name: capacity]
   System.Text.StringBuilder..ctor(String value, Int32 startIndex, Int32 length, Int32 capacity) +15043066
   CMS.OutputFilter.ResponseOutputFilter.ResolveSubstitutions(String& html) +144
   CMS.OutputFilter.OutputData.WriteOutputToStream(Stream s, Boolean trimmed, Boolean allowSubstitutions) +248
   CMS.OutputFilter.ResponseOutputFilter.Close() +120
   System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +689
   System.Web.HttpResponse.FilterOutput() +115
   System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +61
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4076.0