Message:
String was not recognized as a valid DateTime.
StackTrace:
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.DateTime.Parse(String s) at CKFinder.Connector.CommandHandlers.ThumbnailCommandHandler.SendResponse(HttpResponse response) at CKFinder.Connector.Connector.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Server Variables:
URL: /ckfinder/core/connector/aspx/connector.aspx
QUERY_STRING: command=Thumbnail&type=Image¤tFolder=%2F&FileName=Skoda_Fabia_1.jpg
REMOTE_ADDR: 82.207.78.130
HTTP_REFERER: http://backoffice.komp-as.com/ckfinder/ ... type=Image
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 4.9 (build 01863); InfoPath.2)
Wed, 01/23/2008 - 10:48
#1

Re: Errors in connector.aspx
Is there a solution for this already?
Marc
Re: Errors in connector.aspx
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Errors in connector.aspx
Can you please tell me what is causing this error or tell me when a release with the fix comes available?
Some of our CMS customers do have serious problems with this issue.
Thanks,
Marc
Re: Errors in connector.aspx
Is there any indication of what is causing it? It might just require a try....catch block in ThumbnailCommandHandler.cs, maybe around one of the DateTime.Parse lines such as this one:
if ( cachedTimeStr != null && cachedTimeStr.Length > 0 ) { DateTime cachedTime = DateTime.Parse( cachedTimeStr ); if ( cachedTime >= thumbfile.LastWriteTime ) is304 = true; }Re: Errors in connector.aspx
if ( !is304 ) { string cachedTimeStr = Request.ServerVariables[ "HTTP_IF_MODIFIED_SINCE" ]; if ( !string.IsNullOrEmpty(cachedTimeStr) ) { // #MOD try catch block to try and fix strange DateTime error try { DateTime cachedTime = DateTime.Parse(cachedTimeStr); if (cachedTime >= thumbfile.LastWriteTime) is304 = true; } catch (Exception) { is304 = false; } } }Attachments: