asp.net - Routing fails when api is created as a web application under another site -


i developed rest api using asp.net web api. when deploy rest api on iis, need create web application under asp.net web site. when deploying rest api new web site in iis, things worked fine. using following route api/{controller}/{id}.
when created rest api web application underneath asp.net web site project, named web application api. can't access api methods now. can point wrong?

webapi based on global.asax , web.config configurations , can't have 2 of these files inside in same application. in scenario described, sounds need create "virtual directory" in iis second application instead of making "sub folder".

the virtual directory allow declare new web.config , global.asax set new routings , configurations method second application.

for full walkthrough on how can perform please refer site:

http://msdn.microsoft.com/en-us/library/vstudio/bb763173(v=vs.100).aspx


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -