Server Error in '/' Application.

Index and length must refer to a location within the string.
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: Index and length must refer to a location within the string.
Parameter name: length

Source Error:


Line 390:            else
Line 391:                Nombre = Request.RawUrl.Substring(fin + 1); // Nombre
Line 392:            String Nuem = Request.RawUrl.Substring(de, fin - 3); // Nuem            
Line 393:
Line 394:            HttpContext.Current.RewritePath("/homeForos.aspx?Blog=" + Nuem, false);

Source File: \\vid4582.nas1.lan\vid4582\Webs\Plataforma\Global.asax    Line: 392

Stack Trace:


[ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +15054200
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in \\vid4582.nas1.lan\vid4582\Webs\Plataforma\Global.asax:392
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   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.4087.0