Hello,
We have started our first DW project in version 9.2.9, and are trying to use some webapi calls in our project to be able to do some ajax requests in our pages.
I know that DW registers the attribute routing in their own global asax calls from a previous project in DW 8.9, and from the error I get in this DW 9 project when I try to register the attributeroutes myself.
The problem is now that our webapi calls never reach our code, somehow even the most simple attribute route always results in a 404 error.
Has there been a change in DW9 making the use of webapi calls impossible?
Example of code that just doesn’t work in DW9 but would work in DW 8.9:
using System.Web.Http;
namespace Application.WebApi
{
[RoutePrefix("testapi")]
public class TestController : ApiController
{
[HttpGet]
[Route("test")]
public string Test()
{
return "Test OK";
}
}
}
Please let us know what we have to do to get this working again.