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 70:     Function StripTags(ByVal html As String) As String
Line 71:         ' Remove HTML tags.
Line 72:         Return Regex.Replace(html, "<.*?>", "")
Line 73:     End Function
Line 74: 

Source File: D:\Inetpub\wwwroot\lariosport\App_Code\Func.vb    Line: 72

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +5345935
   System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement) +46
   Func.StripTags(String html) in D:\Inetpub\wwwroot\lariosport\App_Code\Func.vb:72
   Func.truncateText(String testo, Int32 chars) in D:\Inetpub\wwwroot\lariosport\App_Code\Func.vb:62
   CPost.renderWide(Table& cont) in D:\Inetpub\wwwroot\lariosport\App_Code\CPost.vb:873
   CNewsList.render(Table& Cont) in D:\Inetpub\wwwroot\lariosport\App_Code\CNewsList.vb:199
   ASP.default_aspx.renderPageElement(Table t, Int64 ID_Element, Page p) in D:\Inetpub\wwwroot\lariosport\default.aspx:272
   ASP.default_aspx.renderPage(Page p, CPage MyPage) in D:\Inetpub\wwwroot\lariosport\default.aspx:213
   ASP.default_aspx.Page_Load(Object sender, EventArgs e) in D:\Inetpub\wwwroot\lariosport\default.aspx:131
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.3662; ASP.NET Version:2.0.50727.3668