This project is read-only.

APIController miss reference

Topics: Customizing Orchard, Troubleshooting, Writing modules
Aug 22, 2013 at 9:19 AM
Hi ,
I try to follow this tutorial
to create a web api service for my custom controller .
But when i add in the ApiController
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http; 
namespace Ective.NGame.Handlers
    public class TestController : ApiController 
VS show me error msg , the type or namespace name "ApiController" could not be found. (are you missing using directive or an assembly reference)

any solution for this ? or i miss a reference to add in in orchard 1.7.1 ?
Aug 22, 2013 at 9:43 AM
Using vs to add a new item -> select web api controller class.
done .
Nov 2, 2013 at 1:34 PM
Edited Nov 2, 2013 at 4:31 PM
same here in 1.7.1:


Created with "add new..." "Web API Controller" won't help! It give me: "Cannot resolve symbol: ApiController"