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 281:
Line 282:		   //remove comments
Line 283:			htmlString = Regex.Replace(htmlString, "<!--.*?-->", String.Empty, RegexOptions.Singleline);
Line 284:
Line 285:			string pattern = @"<(.|\n)*?>";

Source File: C:\inetpub\StrategyPageRoot\App_Code\util.cs    Line: 283

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +8451826
   System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement, RegexOptions options) +110
   www.strategypage.com.util.StripHTML(String htmlString) in C:\inetpub\StrategyPageRoot\App_Code\util.cs:283
   photos.display() in C:\inetpub\StrategyPageRoot\military_photos\photos.aspx.cs:114
   photos.OnPreRender(EventArgs e) in C:\inetpub\StrategyPageRoot\military_photos\photos.aspx.cs:34
   System.Web.UI.Control.PreRenderRecursiveInternal() +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3671


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