Razor Macro's failing on Newtonsoft.Json.dll version
To include a chat box on our company pages we used SignalR. After installing the new usercontrols to the acceptance machine (copy DLL, usercontrols.ascx, css, ...) all the existing razor templates were failing.
For the chatbox implementation SignalR uses Newtonsoft.Json.dll vsersion 4.5.11.15520. The old DLL we overwritten had version 4.0.3.14202.
I've checked the Umbraco source code (we're using V4.7.0) for any references to the Newtonsoft.Json.dll to try to update the reference but couldn't find one.
The error we receiving while using umbdebugshowtrace=true are all simular and connected to the RazorMacroEngine:
- 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'First'
- 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'FirstOrDefault'
Does anyone know where the Newtonsoft.Json.dll is used in the source code? Does anyone has any idea to find out the witch DLL is trying to reference the Newtonsoft.Json.dll? Or how I can trace that?
When restoring the old DLL the razor templates work again but of course the SignalR doesn't work.
Razor Macro's failing on Newtonsoft.Json.dll version
To include a chat box on our company pages we used SignalR. After installing the new usercontrols to the acceptance machine (copy DLL, usercontrols.ascx, css, ...) all the existing razor templates were failing.
For the chatbox implementation SignalR uses Newtonsoft.Json.dll vsersion 4.5.11.15520. The old DLL we overwritten had version 4.0.3.14202.
I've checked the Umbraco source code (we're using V4.7.0) for any references to the Newtonsoft.Json.dll to try to update the reference but couldn't find one.
The error we receiving while using umbdebugshowtrace=true are all simular and connected to the RazorMacroEngine:
- 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'First'
-
'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'FirstOrDefault'
Does anyone know where the Newtonsoft.Json.dll is used in the source code? Does anyone has any idea to find out the witch DLL is trying to reference the Newtonsoft.Json.dll? Or how I can trace that?
When restoring the old DLL the razor templates work again but of course the SignalR doesn't work.
Thx
Bart
I've resolved the problem.
It was appearantly a third party DLL (Twitterizer2.dll) that was referencing the old Newtonsoft.Json.dll.
More info on http://blog.bartdemeyer.be/2013/01/the-hard-search-for-missing-extension-methods-in-umbraco-4-7-0/
is working on a reply...