Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a working 7.0.1 site but when I add a refrence to a separate WEB.API-project of mine (in the same solution, using methods stated here: http://cultiv.nl/blog/2012/6/28/how-to-use-aspnet-web-api-in-umbraco-4-net-40/) I get a YSOD when loading a node in the backoffice. The api-project works as expected though.
The Type UmbracoContext does not have an accessible constructor.
This WEB.API-project uses Unity, wich somehow seems to be the problem. I was trying to register UmbracoContext in the project as described here: http://our.umbraco.org/forum/developers/extending-umbraco/43037-Umbraco-6,-MVC-and-Unity, but I cannot add a refrence to UmbracoCore binaries in that project because it already have a newer version of Json.net (needed by signalr), where as umbraco needs Json.net of version <5.
Any ideas here?
Things seem to be resolving using this documentaion: http://our.umbraco.org/Documentation/Reference/Mvc/using-ioc#
Would have been great if I'd found that one yesterday. Umbraco docs producing!
How did you resolve it exactly? Having a similar issue myself.
Referenced projects use Unity but I dont want to use it in the Umbraco Project!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted