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 1768:    Shared Function StripHeaders(ByVal html As String) As String
Line 1769:        ' Remove Headings with content.
Line 1770:        Return Regex.Replace(html, "<h[1-9][^>]*?>.*?<\/h[1-9]>", "")
Line 1771:    End Function
Line 1772:

Source File: C:\Zenta\Web Projects\winefinder.web\_Plugins\cmsz_product_details.ascx.vb    Line: 1770

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +6993684
   System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement) +95
   cmsz_product_details.StripHeaders(String html) in C:\Zenta\Web Projects\winefinder.web\_Plugins\cmsz_product_details.ascx.vb:1770
   cmsz_product_details.GetDataText() in C:\Zenta\Web Projects\winefinder.web\_Plugins\cmsz_product_details.ascx.vb:250
   cmsz_main.FindAndReplaceWithSpecialFunctions(String InPluginName, String textStr, Int32 getActualid) in C:\Zenta\Web Projects\winefinder.web\_System\cmsz_main.ascx.vb:228
   cmsz_main.LoopThroughSpecialFunctions(String InWebContent, Int32 incid) in C:\Zenta\Web Projects\winefinder.web\_System\cmsz_main.ascx.vb:160
   cmsz_main.GetPluginsContent(String ReqPid, String ReqHTML) in C:\Zenta\Web Projects\winefinder.web\_System\cmsz_main.ascx.vb:77
   _default.Page_Load(Object sender, EventArgs e) in C:\Zenta\Web Projects\winefinder.web\default.aspx.vb:521
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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