Server Error in '/' Application.

String reference not set to an instance of a String.
Parameter name: s

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: String reference not set to an instance of a String.
Parameter name: s

Source Error:


Line 26:         iHits = Convert.ToInt32(reader.ReadLine());
Line 27:         oldclient = reader.ReadLine();
Line 28:         oldDate = DateTime.Parse(reader.ReadLine());
Line 29:         reader.Close();
Line 30: 

Source File: d:\websites\b89bc64151\www\App_Code\Uz_funkce.cs    Line: 28

Stack Trace:


[ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +2962622
   System.DateTime.Parse(String s) +25
   Uz_funkce.Pristup(Page pg, Int32& iHits, String vystup) in d:\websites\b89bc64151\www\App_Code\Uz_funkce.cs:28
   Cojenoveho.Page_Load(Object sender, EventArgs e) in d:\websites\b89bc64151\www\Cojenoveho.aspx.cs:23
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975