Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David W. 159 posts 284 karma points c-trib
    Jan 10, 2014 @ 16:48
    David W.
    0

    YSOD when refrencing WEB.API-project using Unity.

    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?

  • David W. 159 posts 284 karma points c-trib
    Jan 14, 2014 @ 13:17
    David W.
    0

    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!

  • Thomas Haxley 2 posts 22 karma points
    Jan 26, 2016 @ 16:48
    Thomas Haxley
    0

    Hi

    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!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies