Server Error in '/' Application.

Length cannot be less than zero.
Parameter name: length

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: Length cannot be less than zero.
Parameter name: length

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: Length cannot be less than zero.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +14691196
   VanTrung.Core.Web.HttpModules.UrlRewrite.ExtractTitle(HttpContext context, String url) in E:\CCTY\App\chucucthuyhcm.org.vn\VanTrung.Core\Web\HttpModules\UrlRewrite.cs:137
   VanTrung.Core.Web.HttpModules.UrlRewrite.RewriteLuat(HttpContext context, String url) in E:\CCTY\App\chucucthuyhcm.org.vn\VanTrung.Core\Web\HttpModules\UrlRewrite.cs:282
   VanTrung.Core.Web.HttpModules.UrlRewrite.ContextBeginRequest(Object sender, EventArgs e) in E:\CCTY\App\chucucthuyhcm.org.vn\VanTrung.Core\Web\HttpModules\UrlRewrite.cs:488
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
   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.2623.0