Server Error in '/' Application.

Argument 'Length' must be greater or equal to zero.

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.ArgumentException: Argument 'Length' must be greater or equal to zero.

Source Error:


Line 76:             lRange = InStr(TxtDescription, "<a#>") + 3
Line 77:             uRange = InStr(TxtDescription, "</a#>") - 1
Line 78:             iLink = Mid(TxtDescription, lRange + 1, uRange - lRange)
Line 79:             TxtDescription = Replace(TxtDescription, "<a#>", "</asp:Label><a href='" & iLink & "' target='_blank' style='font-weight:normal; color:Blue; text-decoration:underline;'>$**$", , 1)
Line 80: 

Source File: C:\Domains\shq.lasdnews.net\pages\NewsRelease.aspx.vb    Line: 78

Stack Trace:


[ArgumentException: Argument 'Length' must be greater or equal to zero.]
   Microsoft.VisualBasic.Strings.Mid(String str, Int32 Start, Int32 Length) +466558
   Pages_NewsRelease.Page_Load(Object sender, EventArgs e) in C:\Domains\shq.lasdnews.net\pages\NewsRelease.aspx.vb:78
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8000; ASP.NET Version:2.0.50727.8001