Hello,
I’ve created a simple Controller with Umbraco Web Api. Locally works but when i run the site on server the Controller isn’t found.
The site is visible and all contents are shown.
Here the urls (local and server)
local:
http://localhost:8086/umbraco/api/Home/GetAllProducts
browser on server (the site is inside another folder called Umbraco, the site is visible at http://localhost/Umbraco):
http://localhost/Umbraco/umbraco/api/Home/GetAllProducts
Why I can’t see the controller on server? I’ve also tried different path like
- http://localhost/umbraco/api/Home/GetAllProducts
- http://localhost/Umbraco/umbraco/Home/GetAllProducts
- http://localhost/Umbraco/Home/GetAllProducts
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/94277-web-api-controller-not-found