I'm writing a asp.net web service which contains a web controller. today I add a new webapi controller to my project, when I send a request to oldest controller everything is ok and I get correct response. but when I send a request to new one, my browser(MS Edge) returns this error:
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). (XHR): POST - http://localhost:3982/api/ViewTemplates
It returns error while both of controllers are in a same namespace and place together in a folder.
I try defining my new request path
manually in WebApiConfig.cs but it doesn't work so I change this class to it's default configuration.
can you help me?
thanks