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 3009:    public static string RemoveHTML(string strHTML)
Line 3010:    {
Line 3011:        string STR = Regex.Replace(strHTML, "<(.|\n)*?>", "");
Line 3012:        return STR.Replace("&quot;", "\"").Replace("&nbsp;", " ").Replace("&#39;", "'").Replace("\r\n", "");
Line 3013:    }

Source File: c:\inetpub\wwwroot\VeriTiv2\App_Code\Tools\Functions.cs    Line: 3011

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +8457586
   System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement) +105
   Functions.RemoveHTML(String strHTML) in c:\inetpub\wwwroot\VeriTiv2\App_Code\Tools\Functions.cs:3011
   Code_Pages_Search.LoadDate() in c:\inetpub\wwwroot\VeriTiv2\Code\Pages\Search.aspx.cs:466
   Code_Pages_Search.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\VeriTiv2\Code\Pages\Search.aspx.cs:51
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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