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 132:		else
Line 133:			sWork = right(sWork,len(sWork)-instr(sWork,"<h2 class=""drupal-tabs-title js-hide"">Latest Blog Posts</h2>")+1)
Line 134:			sWork = left(sWork,instr(sWork,"<div class=""panels-flexible-26-right"">")-1)
Line 135:			sWork = replace(sWork,"<a href=""/blog/vertical-thought-blog"">Vertical Thought Blog</a>","")
Line 136:			sWork = replace(sWork," - </span>","</span>")

Source File: C:\inetpub\wwwroot\CANADA\www.ucg.ca\blog\default.aspx.vb    Line: 134

Stack Trace:


[ArgumentException: Argument 'Length' must be greater or equal to zero.]
   Microsoft.VisualBasic.Strings.Left(String str, Int32 Length) +1479083
   ASP.blog_default_aspx.Page_Load() in C:\inetpub\wwwroot\CANADA\www.ucg.ca\blog\default.aspx.vb:134
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1607


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