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 18:     public static string PrepareUrlText(string UrlText)
Line 19:     {
Line 20:         UrlText = purifyUrlRegex.Replace(UrlText, "");
Line 21:         UrlText = UrlText.Trim();
Line 22:         UrlText = DashesRegEx.Replace(UrlText, "-");

Source File: d:\Inetpub\vhosts\beta123.co.uk\allframe.co.uk\App_Code\NewCode\Link.cs    Line: 20

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +7100022
   Link.PrepareUrlText(String UrlText) in d:\Inetpub\vhosts\beta123.co.uk\allframe.co.uk\App_Code\NewCode\Link.cs:20
   Link.ToArtist(String ArtistID, String page) in d:\Inetpub\vhosts\beta123.co.uk\allframe.co.uk\App_Code\NewCode\Link.cs:75
   UserControls_ProductListForArtist.PopulateControls() in d:\Inetpub\vhosts\beta123.co.uk\allframe.co.uk\UserControls\ProductListForArtist.ascx.cs:140
   UserControls_ProductListForArtist.Page_Load(Object sender, EventArgs e) in d:\Inetpub\vhosts\beta123.co.uk\allframe.co.uk\UserControls\ProductListForArtist.ascx.cs:20
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   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