I'm trying to create a Web API following this link . I have exactly added the way it is shown in this article.
But after adding the controller, it is giving me this error for System.Web.Http
and ApiController
.
Error message on System.Web.Http :
The type or namespace Http doesn't exist in the namespace 'System.Web'
Error message on ApiController:
The type or namespace ApiController could not be found.
Additional Information :
I'm using Visual Studio 2015 Professional. Framework : .NET Framework 4.6.1
I have searched a lot about this issue but couldn't find anything solution.I'm sure i'm missing very small details somewhere but can anyone help me here.
Thanks a lot in advance.