String was not recognized as a valid DateTime

Mar 19, 2010 at 11:19 PM

Hi all,

Sometimes while initializing first page i am getting the error below , any idea about it ?

Could it be an exception in CanvasSession.cs line 32 ... ?!??!

 

public CachedSessionInfo(string sessionKey, long userId, DateTime expiryTime)

{
	SessionKey = sessionKey;
	UserId = userId;
	ExpiryTime = expiryTime;
}

 

P.S. : Clearing all cookies fixes the problem ...

 

 

----------------------------------------------------------------------------------------------------------------

 

 

Message => String was not recognized as a valid DateTime

----------------------------------------------------------------------------------------------------

Source => mscorlib

----------------------------------------------------------------------------------------------------

Stack => System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)

Facebook.Session.IFrameCanvasSession.LoadCachedSession()

Facebook.Session.CanvasSession.LoadFromRequest()

Facebook.Session.CanvasSession..ctor(String appKey, String appSecret, List`1 permissions, Boolean readRequest)

Facebook.Session.IFrameCanvasSession..ctor(String appKey, String appSecret)

Facebook.Web.CanvasIFrameMasterPage..ctor()

tep.IFrameMaster..ctor()

ASP.facebook_masterpage_iframemaster_master..ctor()

__ASP.FastObjectFactory_app_web_0n3roiyl.Create_ASP_facebook_masterpage_iframemaster_master()

System.Web.Compilation.BuildResultCompiledType.CreateInstance()

System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)

System.Web.UI.Page.get_Master()

System.Web.UI.Page.ApplyMasterPage()

System.Web.UI.Page.PerformPreInit()

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

----------------------------------------------------------------------------------------------------

Target => System.DateTime Parse(System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles)

----------------------------------------------------------------------------------------------------

thanks
tep

 

 

Message => Dize geçerli bir DateTime olarak tanınmadı.
----------------------------------------------------------------------------------------------------
Source => mscorlib
----------------------------------------------------------------------------------------------------
Stack => konum: System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
konum: Facebook.Session.IFrameCanvasSession.LoadCachedSession()
konum: Facebook.Session.CanvasSession.LoadFromRequest()
konum: Facebook.Session.CanvasSession..ctor(String appKey, String appSecret, List`1 permissions, Boolean readRequest)
konum: Facebook.Session.IFrameCanvasSession..ctor(String appKey, String appSecret)
konum: Facebook.Web.CanvasIFrameMasterPage..ctor()
konum: tep.IFrameMaster..ctor()
konum: ASP.facebook_masterpage_iframemaster_master..ctor()
konum: __ASP.FastObjectFactory_app_web_0n3roiyl.Create_ASP_facebook_masterpage_iframemaster_master()
konum: System.Web.Compilation.BuildResultCompiledType.CreateInstance()
konum: System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
konum: System.Web.UI.Page.get_Master()
konum: System.Web.UI.Page.ApplyMasterPage()
konum: System.Web.UI.Page.PerformPreInit()
konum: System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----------------------------------------------------------------------------------------------------
Target => System.DateTime Parse(System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles)
----------------------------------------------------------------------------------------------------