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 149:		sAuthor = trim(sAuthor)
Line 150:		sWork = right(sWork,len(sWork) - instr(sWork,"<h1 class=""title"">") + 1)
Line 151:		sWork = left(sWork,instr(sWork,"<div class=""links"">") - 1)
Line 152:		sWork = left(sWork,instr(sWork,"<div class=""clear-block"">") - 1)
Line 153:		sWork = replace(sWork,"<div class=""byline""></div>","<div class=""byline"">by " & sAuthor & "</div>")

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

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:151
   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