Copied to clipboard

Flag this post as spam?

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


  • David 10 posts 30 karma points
    Nov 16, 2014 @ 21:58
    David
    0

    Installing Umbraco in Visual Studio from Nuget

    I'm trying to get Umbraco working from a Visual Studio project using this Umbraco video.  There are a few differences as I'm using version 7.1.8 of Umbraco.

    I install Umbraco to a new MVC project and follow the video instructions.  I get to enter my details and then get to the "Looks like there's still some work to do" screen.  When I click on the "Set up your new website link" I get this error message (full error screen below):

    "CS0012: The type 'System.Web.Http.ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."

    I found a forum post here that describes a similar error message but the solution there was to set the System.Web.MVC reference to "copy local" = true.  I already have that setting so it must be a different problem.

    Does anyone know what the problem is?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 16, 2014 @ 22:36
    Dennis Aaen
    1

    Hi David,

    I think you have run into this problem. Try to read this blogpost from Umbraco. http://umbraco.com/follow-us/blog-archive/2014/10/16/getting-a-systemwebhttpapicontroller-error/

    Hope this helps,

    /Dennis

  • David 10 posts 30 karma points
    Nov 17, 2014 @ 11:43
    David
    0

    Hi Dennis,

    That worked.  Thanks a lot.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 17, 2014 @ 11:50
    Dennis Aaen
    0

    Hi David,

    You´re welcome, glad that you solved it, with a little help from me.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft