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 141:		sAuthor = sWork
Line 142:		sAuthor = right(sAuthor,len(sAuthor) - instr(sAuthor,"<div class=""view view-morefromthisauthorsidebar") + 1)
Line 143:		sAuthor = left(sAuthor,instr(sAuthor,"</h2>")-1)
Line 144:		sAuthor = right(sAuthor,len(sAuthor) - instr(sAuthor,"<h2") + 1)
Line 145:		sAuthor = replace(sAuthor,"<h2>","")

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

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