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 4:      Protected Sub Page_Init(sender As Object, e As EventArgs)
Line 5:          Dim enc As New encrypt
Line 6:          Dim isNew = System.Text.RegularExpressions.Regex.IsMatch(Request.QueryString("cid"), "^[0-9]*$")
Line 7:          If isNew Then
Line 8:              cid = enc.Encrypt(Request.QueryString("cid"))

Source File: E:\Sites\AntennaNews\templates\masterpages\watch.master    Line: 6

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.IsMatch(String input) +8156942
   System.Text.RegularExpressions.Regex.IsMatch(String input, String pattern) +97
   ASP.templates_masterpages_watch_master.Page_Init(Object sender, EventArgs e) in E:\Sites\AntennaNews\templates\masterpages\watch.master:6
   System.Web.UI.Control.OnInit(EventArgs e) +108
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


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