ERROR Lecoati.LeBlender.Extension.Helper - [Thread 16] Could not read Expriration datas
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Lecoati.LeBlender.Extension.Helper.GetCacheExpiration(String LeBlenderEditorAlias)
I think the problem might be if the "Cache period" field is empty.
We are using version 1.0.8.3 and our logs are full of the same error:
"exception": {
"Type": "System.NullReferenceException",
"Message": "Object reference not set to an instance of an object.",
"HelpLink": null,
"Source": "Lecoati.LeBlender.Extension",
"HResult": -2147467261,
"StackTrace": " at Lecoati.LeBlender.Extension.Helper.GetCacheExpiration(String LeBlenderEditorAlias)",
"Data": {},
"InnerException": null
}
Edit: This seems to be a problem on our end. We have our frontservers set up as virtualapplications under another site and to get leblender to work with this we have added a "~" before the leblender views that are automatically set for grideditors. This means that when GetCacheExpiration in leblender trys to find only leblender grideditors it find nothing(due to exact match against /App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.htm) and that makes the method go BOOM.
Yes we took the project source and built our own binaries. If i dont remeber incorrectly there is a method that check if a editor is a leblendereditor by matching it against a path. We just changed it to look for the path with or without the ~ in the beginning. And while we were at it I thing we also changed so that all new editors created with leblender are crated with ~in the beginning so we dont have to change it manully in the grideditor config for each new editor.
Im just thinking in our grid.editors.config.js where we have ~ if we were to replace it with /cms/App_Plugins/ and ~/views with /cms/views that would solve the problem?
Problably not, the View would still be treated as a "non"leblender editor and the error will still persist as leblender cant identify it as one of it own.
Could not read Expriration datas
I get this error in our applications:
I think the problem might be if the "Cache period" field is empty.
Hi Calvin,
You are right, there is an issue about the cache period reading and a terrible tipo as well :). I will fixed that !
Thanks
Hello Calvin,
I have just uploaded LeBlender 1.0.6 with this bug fixed.
Thanks for your feedback.
Hi Antoine
Thank you, but error is still logged :-(. I deleted the umbraco.config and saved all LeBlender Editors.
Is it because the DLL has still version 1.0.5?
Thank you
Hi Calvin, ok I will check that again.Thanks
Hello Calvin,
This time, I fixed it for real :), check v1.0.7
Hi Antoine
It works! Thank you :-).
Happy to hear that :)
Can it be that this problem is back?
We are using version 1.0.8.3 and our logs are full of the same error:
"exception": { "Type": "System.NullReferenceException", "Message": "Object reference not set to an instance of an object.", "HelpLink": null, "Source": "Lecoati.LeBlender.Extension", "HResult": -2147467261, "StackTrace": " at Lecoati.LeBlender.Extension.Helper.GetCacheExpiration(String LeBlenderEditorAlias)", "Data": {}, "InnerException": null }
Edit: This seems to be a problem on our end. We have our frontservers set up as virtualapplications under another site and to get leblender to work with this we have added a "~" before the leblender views that are automatically set for grideditors. This means that when GetCacheExpiration in leblender trys to find only leblender grideditors it find nothing(due to exact match against /App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.htm) and that makes the method go BOOM.
Andreas,
We are getting same issue as we virtual applications as well with ~ like you.
Did you ever fix this?
Regards
Ismail
Hi Ismail,
Yes we took the project source and built our own binaries. If i dont remeber incorrectly there is a method that check if a editor is a leblendereditor by matching it against a path. We just changed it to look for the path with or without the ~ in the beginning. And while we were at it I thing we also changed so that all new editors created with leblender are crated with ~in the beginning so we dont have to change it manully in the grideditor config for each new editor.
best regards Andreas
Andreas,
Im just thinking in our grid.editors.config.js where we have ~ if we were to replace it with /cms/App_Plugins/ and ~/views with /cms/views that would solve the problem?
Regards
Ismail
Problably not, the View would still be treated as a "non"leblender editor and the error will still persist as leblender cant identify it as one of it own.
You can se what i mean here(Look at method GetLeblenderEditors and line 119-120): https://github.com/Lecoati/LeBlender/blob/master/Src/Lecoati.LeBlender.Extension/LeBlenderHelper.cs
Andreas,
Ah yes. I have just updated that so using custom leblender hopefully that should fix up the issue.
Regards
Ismail
is working on a reply...