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 37:     {
Line 38:         Regex rgx = new Regex("[^a-zA-Z0-9 -]");
Line 39:         return(rgx.Replace(s, ""));
Line 40: 
Line 41:     }

Source File: f:\hostingspaces\timesha3\timesharebrokersmls.com\wwwroot\App_Code\Common.cs    Line: 39

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +6987580
   Common.StripNonAlpha(String s) in f:\hostingspaces\timesha3\timesharebrokersmls.com\wwwroot\App_Code\Common.cs:39
   Listing.Page_Load(Object sender, EventArgs e) in f:\hostingspaces\timesha3\timesharebrokersmls.com\wwwroot\Listing.aspx.cs:63
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   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.4494.0