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 494:    Public Function StripHTML(ByVal html As String) As String
Line 495:        Dim regex = New Regex("<[^>]+>|\s{2}", RegexOptions.IgnoreCase)
Line 496:        Return System.Web.HttpUtility.HtmlDecode(regex.Replace(html, ""))
Line 497:    End Function
Line 498:

Source File: C:\Inetpub\vhosts\zbytv.com\httpdocs\videos.aspx.vb    Line: 496

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +7100022
   model_videos.StripHTML(String html) in C:\Inetpub\vhosts\zbytv.com\httpdocs\videos.aspx.vb:496
   model_videos.getVideo() in C:\Inetpub\vhosts\zbytv.com\httpdocs\videos.aspx.vb:724
   model_videos.Page_Load(Object sender, EventArgs e) in C:\Inetpub\vhosts\zbytv.com\httpdocs\videos.aspx.vb:90
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975