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 19:     {
Line 20:         // remove all characters that aren't a-z, 0-9, dash, underscore or space
Line 21:         urlText = purifyUrlRegex.Replace(urlText, "");
Line 22: 
Line 23:         // remove all leading and trailing spaces

Source File: d:\Plesk\Vhosts\twistandpurl.co.uk\httpdocs\App_Code\Link.cs    Line: 21

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +8457586
   Link.PrepareUrlText(String urlText) in d:\Plesk\Vhosts\twistandpurl.co.uk\httpdocs\App_Code\Link.cs:21
   Link.ToCategory(String departmentId, String categoryId, String page) in d:\Plesk\Vhosts\twistandpurl.co.uk\httpdocs\App_Code\Link.cs:92
   UserControls_ProductsList.PopulateControls() in d:\Plesk\Vhosts\twistandpurl.co.uk\httpdocs\UserControls\ProductsList.ascx.cs:55
   UserControls_ProductsList.Page_Load(Object sender, EventArgs e) in d:\Plesk\Vhosts\twistandpurl.co.uk\httpdocs\UserControls\ProductsList.ascx.cs:13
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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