umbraco.library makes Editor crash


System.TypeInitializationException was unhandled
Message="The type initializer for 'Nested' threw an exception."
   at umbraco.Singleton`1.get_Instance()
   at umbraco.content.get_Instance()
   at umbraco.content.<.cctor>b__0(Object )
   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
   at umbraco.content.get_Instance()
   at umbraco.library.niceUrlDo(Int32 nodeID, Int32 startNodeDepth)
   at umbraco.library.NiceUrl(Int32 nodeID)
At first sight it rather seems like an error inside the umbraco.dll I failed at coupling it into the project to debug it however. I hope the info is usefull.

file attachments


ovalsquare wrote Dec 12, 2007 at 12:01 AM

I'd love to use this tool, but usefulness is limited as this issue affects pretty much every one of my XSLTs. When I find time, I'll try and dig into the source to see if I can have any more luck with it.

wrote Dec 27, 2007 at 1:11 PM

KrisJ wrote Dec 27, 2007 at 1:11 PM

Looking into this one...

KrisJ wrote Dec 28, 2007 at 2:38 PM

As the stacktrace indicates the problem was related to calls made to the NiceURL functionality from within the xslt.

I was able to partially trace back the cause of this, but I am no hard core coding guru so I decided to reference the newest versions of both Umbraco.dll and BusinessLogic.dll and this solved the problem completely.

The xslt's supplied with the demo website by Warren Buckly all work as expected from within the XSLT Editor.

So on to adding more functionality to this tool!!!

wrote Dec 28, 2007 at 2:38 PM

wrote Jan 2, 2008 at 3:38 PM

wrote Feb 12, 2013 at 9:59 PM