Server Error in '/' Application.

Value cannot be null.
Parameter name: input

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.ArgumentNullException: Value cannot be null.
Parameter name: input

Source Error:


Line 240:    Private Sub UserControlINjector(ByVal myContainer As Control, ByVal content As String)
Line 241:        Dim currentPosition As Integer = 0
Line 242:        Dim myMatches As MatchCollection = _BodyRegex.Matches(content)
Line 243:        For Each myMatch As Match In myMatches
Line 244:            If myMatch.Index > currentPosition Then

Source File: E:\iisroot\lrseducationservices-2018\Themes\LRSEducation\views\blog\blog-post.ascx.vb    Line: 242

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Matches(String input) +114
   views_blog_blog_post.UserControlINjector(Control myContainer, String content) in E:\iisroot\lrseducationservices-2018\Themes\LRSEducation\views\blog\blog-post.ascx.vb:242
   views_blog_blog_post.ContentUserControl_Init(Object sender, EventArgs e) in E:\iisroot\lrseducationservices-2018\Themes\LRSEducation\views\blog\blog-post.ascx.vb:23
   System.Web.UI.Control.OnPreRender(EventArgs e) +99
   System.Web.UI.Control.PreRenderRecursiveInternal() +200
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7479


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