ASP.Net Web API Routing fails when api is created as a web application under another asp.net site in IIS

Posted by neo on Stack Overflow See other posts from Stack Overflow or by neo
Published on 2014-08-18T16:18:39Z Indexed on 2014/08/18 16:21 UTC
Read the original article Hit count: 200

Filed under:
|
|

I developed a rest api using ASP.net web api. When I deploy this rest api on iis, I need to create it as a web application under an asp.net web site. When I was deploying the rest api as a new web site in iis, then things worked fine. I was using the following Route api/{controller}/{id}.
When I created the rest api as a web application underneath asp.net web site project, I named the web application as api. I can't access the api methods now. Can someone point what I do wrong?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about iis