Server Error in '/halc' Application.

Value cannot be null.
Parameter name: String

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: String

Source Error:


Line 36:         scheduleviewer = Users.Privileged(Session["AccountName"].ToString(), "halc", "schedule viewer");
Line 37: 
Line 38:         if (!Users.Privileged(Int32.Parse(Request.QueryString["userid"]), "halc", "tutor"))
Line 39:         {
Line 40:             Response.Redirect(Application["Root"].ToString() + "/tutoring/Tutors.aspx");

Source File: c:\inetpub\wwwroot\halc\tutoring\TutorSchedule.aspx.cs    Line: 38

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: String]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12937821
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +120
   System.Int32.Parse(String s) +24
   tutoring_TutorSchedule.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\halc\tutoring\TutorSchedule.aspx.cs:38
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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