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.
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?
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
Hi Dennis,
That worked. Thanks a lot.
Hi David,
You´re welcome, glad that you solved it, with a little help from me.
/Dennis
is working on a reply...